Snapshot for release 2026.10.15.2 (internal 9094d68)
This commit is contained in:
parent
8bb1c3aa23
commit
516ad2bdf2
121 changed files with 6486 additions and 781 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);
|
||||
// v85: 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