feat: port SK test branch (2026.10.18.24) onto sk
Squash of test/hotbuild-2026-10-16 as merged onto aelrynth main 2026.10.17.1, matching the 2026.10.18.24 test installer. The test branch wins where both changed the same lines; sk-only changes kept; duplicate definitions from both sides cut to the test branch's copy. Highlights: Aelrynth Vault in the Classic and Modern inventory, loot "Add to loot profile" attribute checklist, graphics low-memory safeguard and settings panel, window placement and borderless fixes, chat coordinate links, launcher DXVK toggle, installer stamps experimental plugins with the release calver. Changelog/2026-10-18-sk-port-test-branch-2026.10.18.24.md.
This commit is contained in:
parent
a188f2a322
commit
cbd18a6880
357 changed files with 35835 additions and 903 deletions
|
|
@ -186,14 +186,18 @@ namespace EngineSettingsTests
|
|||
Eq(after.GetProperty("SomeNumber").GetRawText(), "1.50", "a number keeps its exact text");
|
||||
Eq(after.GetProperty("Unicode").GetString(), "Dereth \u00e9 \u2014", "non-ASCII text intact");
|
||||
|
||||
// The engine's own keys: written from memory as before.
|
||||
// The engine's own keys: only the one changed (DisabledUiHooks) is written; every other
|
||||
// key keeps exactly what the file had (since 2026-10-17: another client's change to
|
||||
// those must not be overwritten with this client's stale copy).
|
||||
Eq(string.Join(",", after.GetProperty("DisabledUiHooks").EnumerateArray().Select(e => e.GetString())), "StartTooltip", "DisabledUiHooks written");
|
||||
Eq(Raw(after.GetProperty("PluginPaths")), Raw(before.GetProperty("PluginPaths")), "PluginPaths kept");
|
||||
Eq(after.GetProperty("EnableImGuiShell").GetBoolean(), false, "EnableImGuiShell kept (read, written back)");
|
||||
Eq(after.GetProperty("EnableImGuiShell").GetBoolean(), false, "EnableImGuiShell kept");
|
||||
Eq(after.GetProperty("DecalBridge").GetString(), "On", "DecalBridge On kept");
|
||||
Check(!after.TryGetProperty("DecalInGameImGui", out _), "DecalInGameImGui at its default is left out, as before");
|
||||
foreach (JsonProperty p in before.EnumerateObject())
|
||||
if (p.Name != "DisabledUiHooks")
|
||||
Check(after.TryGetProperty(p.Name, out JsonElement kept) && JsonElement.DeepEquals(kept, p.Value), $"unchanged key {p.Name} keeps the file's value");
|
||||
foreach (string key in new[] { "EnablePlugins", "EnableDatShareHook", "EnableAvaloniaOverlay", "EnableD3D9Hook", "EnableEngine", "EngineHookCount", "EnableHangMinidump", "PreventIdleLogoff" })
|
||||
Check(after.TryGetProperty(key, out _), $"owned key {key} written as before");
|
||||
Check(after.TryGetProperty(key, out _) == before.TryGetProperty(key, out _), $"owned key {key} not added or dropped by an unrelated save");
|
||||
|
||||
// No key twice.
|
||||
var names = after.EnumerateObject().Select(p => p.Name).ToList();
|
||||
|
|
@ -207,6 +211,17 @@ namespace EngineSettingsTests
|
|||
Eq(after.GetProperty("EnableImGuiBackend").GetBoolean(), false, "EnableImGuiBackend saved");
|
||||
Check(after.TryGetProperty("EnableDcompOverlay", out _) && after.TryGetProperty("LauncherWindow", out _), "launcher keys survive a second save");
|
||||
Eq(after.GetProperty("DisabledUiHooks").GetArrayLength(), 1, "first save's DisabledUiHooks kept");
|
||||
|
||||
// Two clients: one saved EnableImGuiBackend=false above; "another client" now turns the
|
||||
// shell back on in the file. A later save of a different key here must not put the
|
||||
// stale EnableImGuiShell back (the last-writer-wins reset of 2026-10-16).
|
||||
var doc = System.Text.Json.Nodes.JsonNode.Parse(File.ReadAllText(path))!.AsObject();
|
||||
doc["EnableImGuiShell"] = true;
|
||||
File.WriteAllText(path, doc.ToJsonString());
|
||||
(exit, output) = RunChild(path, "hook-off", "AnotherHook");
|
||||
Eq(exit, 0, "third child exit code (" + output.Trim() + ")");
|
||||
after = ReadJson(path);
|
||||
Eq(after.GetProperty("EnableImGuiShell").GetBoolean(), true, "another client's EnableImGuiShell survives this client's save");
|
||||
}
|
||||
|
||||
private static void SaveRoundTripsOwnedKeys()
|
||||
|
|
|
|||
Loading…
Reference in a new issue