Add a message to the plugin window when SafeMode is active

This commit is contained in:
Raymond 2021-08-31 20:12:59 -04:00
parent e302b3bd8f
commit 910176914e
3 changed files with 33 additions and 13 deletions

View file

@ -236,15 +236,14 @@ namespace Dalamud
{
Log.Information("[T3] START!");
var pluginManager = Service<PluginManager>.Set();
Service<CallGate>.Set();
if (!bool.Parse(Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_PLUGINS") ?? "false"))
{
try
{
Service<CallGate>.Set();
var pluginManager = Service<PluginManager>.Set();
pluginManager.OnInstalledPluginsChanged += () =>
Troubleshooting.LogTroubleshooting();
pluginManager.OnInstalledPluginsChanged += Troubleshooting.LogTroubleshooting;
Log.Information("[T3] PM OK!");