mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
feat: ImGuiManagedAsserts
This commit is contained in:
parent
8bc4598a3c
commit
dda515da85
4 changed files with 176 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Dalamud.Interface.Internal.ManagedAsserts;
|
||||
using ImGuiNET;
|
||||
using Serilog;
|
||||
|
||||
|
|
@ -98,8 +98,13 @@ namespace Dalamud.Interface.Windowing
|
|||
#if DEBUG
|
||||
// Log.Verbose($"[WS{(hasNamespace ? "/" + this.Namespace : string.Empty)}] Drawing {window.WindowName}");
|
||||
#endif
|
||||
var snapshot = ImGuiManagedAsserts.GetSnapshot();
|
||||
|
||||
window.DrawInternal();
|
||||
|
||||
var source = ($"{this.Namespace}::" ?? string.Empty) + window.WindowName;
|
||||
ImGuiManagedAsserts.ReportProblems(source, snapshot);
|
||||
|
||||
}
|
||||
|
||||
var focusedWindow = this.windows.FirstOrDefault(x => x.IsFocused && x.RespectCloseHotkey);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue