fix(D.5.1): toolbar digit-array log reports post-fallback final state (review)

This commit is contained in:
Erik 2026-06-17 13:58:07 +02:00
parent b2a812d1fa
commit 7d5a88cd15

View file

@ -1948,9 +1948,6 @@ public sealed class GameWindow : IDisposable
if (arrWar.Value[i] is DatReaderWriter.Types.DataIdBaseProperty d)
toolbarWarDigits[i] = d.Value;
}
Console.WriteLine(toolbarPeaceDigits is not null
? $"[D.5.1] digit arrays loaded: peace={toolbarPeaceDigits.Length}, war={toolbarWarDigits?.Length ?? 0} entries."
: "[D.5.1] digit arrays: property 0x10000042 not found in element 0x1000034A — falling back to cited constants.");
}
else
{
@ -1968,6 +1965,8 @@ public sealed class GameWindow : IDisposable
toolbarWarDigits = new uint[]
{ 0x06001ACCu, 0x06001ACDu, 0x06001ACEu, 0x06001ACFu, 0x06001AD0u,
0x06001AD1u, 0x06001AD2u, 0x06001AD3u, 0x06001AD4u };
// Report the arrays actually used (after any fallback substitution).
Console.WriteLine($"[D.5.1] toolbar digit arrays ready: peace={toolbarPeaceDigits.Length}, war={toolbarWarDigits.Length} entries.");
AcDream.App.UI.Layout.ImportedLayout? toolbarLayout;
lock (_datLock)