mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
move DALAMUD_NOT_HAVE_PLUGINS into safeMode check
This commit is contained in:
parent
910176914e
commit
9697f0b7a0
2 changed files with 13 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue