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,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);