fix: Remove WaitForFontRebuild during start, this breaks titleedit again for whatever reason

This commit is contained in:
goat 2021-04-26 22:05:49 +02:00
parent 9f22b00fc6
commit 74a0cbb034
No known key found for this signature in database
GPG key ID: F18F057873895461
3 changed files with 9 additions and 5 deletions

View file

@ -197,6 +197,9 @@ namespace Dalamud
this.Framework = new Framework(this.SigScanner, this);
Log.Information("[SPRE] Framework OK!");
this.Framework.Enable();
Log.Information("[SPRE] Framework ENABLE!");
}
/// <summary>
@ -254,8 +257,6 @@ namespace Dalamud
isInterfaceLoaded = true;
Log.Information("[SPOST] IM OK!");
this.InterfaceManager.WaitForFontRebuild();
}
catch (Exception e)
{
@ -314,9 +315,6 @@ namespace Dalamud
}
}
this.Framework.Enable();
Log.Information("[SPOST] Framework ENABLE!");
this.ClientState.Enable();
Log.Information("[SPOST] CS ENABLE!");

View file

@ -68,6 +68,7 @@ namespace Dalamud.Interface
/// </summary>
public event RawDX11Scene.BuildUIDelegate OnDraw;
public bool FontsReady { get; set; } = false;
public InterfaceManager(Dalamud dalamud, SigScanner scanner)
{
@ -380,6 +381,8 @@ namespace Dalamud.Interface
japaneseRangeHandle.Free();
gameRangeHandle.Free();
iconRangeHandle.Free();
this.FontsReady = true;
}
public void WaitForFontRebuild() {

View file

@ -197,6 +197,9 @@ namespace Dalamud.Interface
(this.GposeActive && this.dalamud.Configuration.ToggleUiHideDuringGpose && !(this.DisableGposeUiHide || this.DisableAutomaticUiHide)))
return;
if (!this.dalamud.InterfaceManager.FontsReady)
return;
ImGui.PushID(this.namespaceName);
if (DoStats)
{