mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 08:17:47 +01:00
feat: add IsDebugging prop to PluginInterface
This commit is contained in:
parent
0288db5220
commit
744c777a6d
2 changed files with 20 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue