mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
only turn ImGui asserts on if we are actually loading a devplugin
This commit is contained in:
parent
1083081706
commit
b79c646b9b
2 changed files with 3 additions and 6 deletions
|
|
@ -605,12 +605,6 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
|
||||||
this.AutoUpdateBehavior ??= this.AutoUpdatePlugins
|
this.AutoUpdateBehavior ??= this.AutoUpdatePlugins
|
||||||
? Plugin.Internal.AutoUpdate.AutoUpdateBehavior.UpdateAll
|
? Plugin.Internal.AutoUpdate.AutoUpdateBehavior.UpdateAll
|
||||||
: Plugin.Internal.AutoUpdate.AutoUpdateBehavior.OnlyNotify;
|
: Plugin.Internal.AutoUpdate.AutoUpdateBehavior.OnlyNotify;
|
||||||
|
|
||||||
// Turn ImGui asserts on by default if we have any active dev plugins
|
|
||||||
if (!this.ImGuiAssertsEnabledAtStartup.HasValue && this.DevPluginLoadLocations.Any(x => x.IsEnabled))
|
|
||||||
{
|
|
||||||
this.ImGuiAssertsEnabledAtStartup = true;
|
|
||||||
}
|
|
||||||
#pragma warning restore CS0618
|
#pragma warning restore CS0618
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1572,6 +1572,9 @@ internal class PluginManager : IInternalDisposableService
|
||||||
{
|
{
|
||||||
Log.Information($"Loading dev plugin {name}");
|
Log.Information($"Loading dev plugin {name}");
|
||||||
plugin = new LocalDevPlugin(dllFile, manifest);
|
plugin = new LocalDevPlugin(dllFile, manifest);
|
||||||
|
|
||||||
|
// This is a dev plugin - turn ImGui asserts on by default if we haven't chosen yet
|
||||||
|
this.configuration.ImGuiAssertsEnabledAtStartup ??= true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue