feat: also get a snapshot for Dalamud windows

This commit is contained in:
goat 2021-09-15 02:00:58 +02:00
parent 5c5ad9e2f5
commit 18e27290dc
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 6 additions and 2 deletions

View file

@ -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();
}
}