mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Better ImGui setup condition (#2249)
* Better ImGui setup condition * Fix build
This commit is contained in:
parent
cb8d9cc397
commit
81ced564d6
1 changed files with 5 additions and 3 deletions
|
|
@ -34,8 +34,6 @@ using Dalamud.Plugin.Services;
|
||||||
using Dalamud.Utility;
|
using Dalamud.Utility;
|
||||||
using Dalamud.Utility.Timing;
|
using Dalamud.Utility.Timing;
|
||||||
|
|
||||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Environment;
|
|
||||||
|
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
|
||||||
using ImGuiScene;
|
using ImGuiScene;
|
||||||
|
|
@ -47,6 +45,8 @@ using PInvoke;
|
||||||
using TerraFX.Interop.DirectX;
|
using TerraFX.Interop.DirectX;
|
||||||
using TerraFX.Interop.Windows;
|
using TerraFX.Interop.Windows;
|
||||||
|
|
||||||
|
using CSFramework = FFXIVClientStructs.FFXIV.Client.System.Framework.Framework;
|
||||||
|
|
||||||
// general dev notes, here because it's easiest
|
// general dev notes, here because it's easiest
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -524,7 +524,9 @@ internal partial class InterfaceManager : IInternalDisposableService
|
||||||
// Some graphics drivers seem to consider the game's shader cache as invalid if we hook too early.
|
// Some graphics drivers seem to consider the game's shader cache as invalid if we hook too early.
|
||||||
// The game loads shader packages on the file thread and then compiles them. It will show the logo once it is done.
|
// The game loads shader packages on the file thread and then compiles them. It will show the logo once it is done.
|
||||||
// This is a workaround, but it fixes an issue where the game would take a very long time to get to the title screen.
|
// This is a workaround, but it fixes an issue where the game would take a very long time to get to the title screen.
|
||||||
if (EnvManager.Instance() == null)
|
// NetworkModuleProxy is set up after lua scripts are loaded (EventFramework.LoadState >= 5), which can only happen
|
||||||
|
// after the shaders are compiled (if necessary) and loaded. AgentLobby.Update doesn't do much until this condition is met.
|
||||||
|
if (CSFramework.Instance()->GetNetworkModuleProxy() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.SetupHooks(Service<TargetSigScanner>.Get(), Service<FontAtlasFactory>.Get());
|
this.SetupHooks(Service<TargetSigScanner>.Get(), Service<FontAtlasFactory>.Get());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue