mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
feat: alternate hooks
This commit is contained in:
parent
dc88cec7d3
commit
6f41575f33
8 changed files with 137 additions and 19 deletions
|
|
@ -56,8 +56,8 @@ namespace Dalamud.Plugin.Internal
|
|||
if (!this.devPluginDirectory.Exists)
|
||||
this.devPluginDirectory.Create();
|
||||
|
||||
var noPlugins = bool.Parse(Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_PLUGINS") ?? "false");
|
||||
if (this.SafeMode = noPlugins || configuration.PluginSafeMode)
|
||||
this.SafeMode = EnvironmentConfiguration.DalamudNoPlugins || configuration.PluginSafeMode;
|
||||
if (this.SafeMode)
|
||||
{
|
||||
configuration.PluginSafeMode = false;
|
||||
configuration.Save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue