feat: add a env var to disable interface

This commit is contained in:
goat 2020-06-01 13:42:17 +02:00
parent c8d4d063bb
commit 8848d1778f

View file

@ -106,13 +106,18 @@ namespace Dalamud {
this.localizationMgr.SetupWithUiCulture(); this.localizationMgr.SetupWithUiCulture();
} }
try { if (Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_INTERFACE") != "True") {
this.InterfaceManager = new InterfaceManager(this, this.SigScanner); try
this.InterfaceManager.OnDraw += BuildDalamudUi; {
this.InterfaceManager = new InterfaceManager(this, this.SigScanner);
this.InterfaceManager.OnDraw += BuildDalamudUi;
this.InterfaceManager.Enable(); this.InterfaceManager.Enable();
} catch (Exception e) { }
Log.Information(e, "Could not init interface."); catch (Exception e)
{
Log.Information(e, "Could not init interface.");
}
} }
this.Data = new DataManager(this.StartInfo.Language); this.Data = new DataManager(this.StartInfo.Language);