feat: add IsDebugging prop to PluginInterface

This commit is contained in:
goat 2021-01-14 22:10:59 +01:00
parent 0288db5220
commit 744c777a6d
2 changed files with 20 additions and 5 deletions

View file

@ -62,7 +62,16 @@ namespace Dalamud.Plugin
/// A <see cref="SeStringManager">SeStringManager</see> instance which allows creating and parsing SeString payloads.
/// </summary>
public readonly SeStringManager SeStringManager;
/// <summary>
/// Returns true if Dalamud is running in Debug mode or the /xldev menu is open. This can occur on release builds.
/// </summary>
#if DEBUG
public bool IsDebugging => true;
#else
public bool IsDebugging => this.dalamud.IsDevMenu;
#endif
private readonly Dalamud dalamud;
private readonly string pluginName;
private readonly PluginConfigurations configs;