feat: SK engine work through 2026-10-13 on 2026.10.13.3
Plugin API v86 after rynth's v84 GetObjectProperties: v85 confirmation answers (ArmConfirmation, GetLastConfirmation), v86 GetServerStateJson. - One plugin per server, server verdicts, per-character overrides and a server picker; skipped server plugins are listed and load when forced On. - Mini Remote sections and the sections rail; Session Stats; Char menu Fellowship and quests; known-server picker in the launcher. - Items damage-type colors, one Progression Attributes section, environment-hit throttle and per-monster attack power settings. - Security review fixes (SafeImGui, chat-origin checks, StatusAgent 1.0.1). See Changelog/2026-10-14-sk-engine-work-through-10-13.md.
This commit is contained in:
parent
67574b56e6
commit
e3222805cb
113 changed files with 6207 additions and 759 deletions
|
|
@ -182,6 +182,7 @@ internal static class SmartBoxHooks
|
|||
var pOriginal = (delegate* unmanaged[Thiscall]<IntPtr, IntPtr, int, uint>)_originalDispatchGameEventPtr;
|
||||
|
||||
EnchantmentChange? enchantment = null;
|
||||
bool answered = false;
|
||||
try
|
||||
{
|
||||
// Reject undersized payloads instead of clamping up: an inflated
|
||||
|
|
@ -199,10 +200,19 @@ internal static class SmartBoxHooks
|
|||
ParseGameEvent(eventType, data, (uint)len);
|
||||
if ((eventType >= 0x02C2 && eventType <= 0x02C8) || eventType == 0x0312)
|
||||
enchantment = CaptureEnchantmentEvent(eventType, data, (uint)len);
|
||||
// v81: a prompt a plugin armed an answer for is answered here instead of
|
||||
// opening AC's dialog.
|
||||
if (eventType == ConfirmationResponder.EventConfirmationRequest)
|
||||
answered = ConfirmationResponder.OnRequest(data, (uint)len);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
// AC's ConfirmationRequest handler returns 0 on every path, so an answered prompt
|
||||
// returns the same without reaching it.
|
||||
if (answered)
|
||||
return 0;
|
||||
|
||||
uint status = pOriginal(thisPtr, data, size);
|
||||
|
||||
// Enchantment events are queued AFTER the original ran: by then AC's
|
||||
|
|
|
|||
Loading…
Reference in a new issue