upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorLuc <145881229+Joaco9020@users.noreply.github.com>2026-11-23 19:22:42 -0300
committersodove <mixercraft@gmail.com>2026-11-24 23:16:01 +0500
commit49f7133d96c8f9cbee2f5e04132a0f47ed728c4a (patch)
tree4397ba05197eab7383d0c12b83789c6450099e8c /runtime/src/xma2_decoder.cpp
parent3aa975421d470b76da1aa986a91282c59e20d642 (diff)
gameinput: StopCallback and UnregisterCallback take the current-callback token
GAMEINPUT_CURRENT_CALLBACK_TOKEN_VALUE (all ones) names the callback that is running on the calling thread, as the host's GameInput does (measured by @Maraco91 on GameInput 0.2309): inside a callback, UnregisterCallback(CURRENT) removes it and returns true and StopCallback(CURRENT) stops it; outside one the token names nothing and UnregisterCallback returns false. The shim compared it with registered tokens, matched none, and the callback kept firing. call() records the running token in a thread_local, restored on return, and both methods resolve the constant through it. gameinput_test drives a self-cancelling reading callback through four button changes on the virtual Xbox pad, once per method. Finding: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7115359105 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions