mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
feat: also get a snapshot for Dalamud windows
This commit is contained in:
parent
5c5ad9e2f5
commit
18e27290dc
2 changed files with 6 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ using Dalamud.Game.Gui.Internal;
|
|||
using Dalamud.Game.Internal.DXGI;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Hooking.Internal;
|
||||
using Dalamud.Interface.Internal.ManagedAsserts;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Utility;
|
||||
|
|
@ -631,7 +632,10 @@ namespace Dalamud.Interface.Internal
|
|||
WindowSystem.HasAnyWindowSystemFocus = false;
|
||||
WindowSystem.FocusedWindowSystemNamespace = string.Empty;
|
||||
|
||||
var snap = ImGuiManagedAsserts.GetSnapshot();
|
||||
this.Draw?.Invoke();
|
||||
ImGuiManagedAsserts.ReportProblems("Dalamud Core", snap);
|
||||
|
||||
Service<NotificationManager>.Get().Draw();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ namespace Dalamud.Interface
|
|||
ImGui.End();
|
||||
}
|
||||
|
||||
ImGuiManagedAsserts.ImGuiContextSnapshot? snapshot = null;
|
||||
ImGuiManagedAsserts.ImGuiContextSnapshot snapshot = null;
|
||||
if (this.Draw != null)
|
||||
{
|
||||
snapshot = ImGuiManagedAsserts.GetSnapshot();
|
||||
|
|
@ -296,7 +296,7 @@ namespace Dalamud.Interface
|
|||
}
|
||||
|
||||
// Only if Draw was successful
|
||||
if (this.Draw != null && snapshot != null)
|
||||
if (this.Draw != null)
|
||||
{
|
||||
ImGuiManagedAsserts.ReportProblems(this.namespaceName, snapshot);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue