move DALAMUD_NOT_HAVE_PLUGINS into safeMode check

This commit is contained in:
Raymond 2021-08-31 20:16:17 -04:00
parent 910176914e
commit 9697f0b7a0
2 changed files with 13 additions and 15 deletions

View file

@ -62,7 +62,8 @@ namespace Dalamud.Plugin.Internal
if (!this.devPluginDirectory.Exists)
this.devPluginDirectory.Create();
if (this.SafeMode = configuration.PluginSafeMode)
var noPlugins = bool.Parse(Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_PLUGINS") ?? "false");
if (this.SafeMode = noPlugins || configuration.PluginSafeMode)
{
configuration.PluginSafeMode = false;
configuration.Save();