mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
feat: add a env var to disable interface
This commit is contained in:
parent
c8d4d063bb
commit
8848d1778f
1 changed files with 11 additions and 6 deletions
|
|
@ -106,14 +106,19 @@ namespace Dalamud {
|
|||
this.localizationMgr.SetupWithUiCulture();
|
||||
}
|
||||
|
||||
try {
|
||||
if (Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_INTERFACE") != "True") {
|
||||
try
|
||||
{
|
||||
this.InterfaceManager = new InterfaceManager(this, this.SigScanner);
|
||||
this.InterfaceManager.OnDraw += BuildDalamudUi;
|
||||
|
||||
this.InterfaceManager.Enable();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Information(e, "Could not init interface.");
|
||||
}
|
||||
}
|
||||
|
||||
this.Data = new DataManager(this.StartInfo.Language);
|
||||
await this.Data.Initialize(this.baseDirectory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue