upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/code_hooks_test.cpp
diff options
context:
space:
mode:
authorubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-29 22:24:55 -0500
committerubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-29 22:24:55 -0500
commit54374cf53e0f66d2d5c744e8dd7b678d96cb141e (patch)
tree23168564cd5c009787e52dd0dfa9851b62fb919b /runtime/test/code_hooks_test.cpp
parent95bc33f6e2da3e751658f4a5317fd53def030f4a (diff)
Button prompts that follow a device switch during play
tools/live_prompt_glyphs.py builds ps_live_prompt_glyphs.gfx over the title's glyph movie on the player's PC: each Main_Button_N sprite holds the PlayStation and the keyboard picture (the first keyboard piece named k), and the title's ActionScript block gets three static Number slots on Main (lnLo, lnFamily, lnHi, the outer two sentinels), four static methods that show the pad or the keyboard pieces when a prompt is made and on each frame while it is on the stage, and a call from SpriteAsset's constructor, the base of exactly the 38 symbol classes. Everything added is in try blocks. tools/abc_file.py reads and writes ABC byte for byte. Both sets and the code fit the 28,148 bytes with 1,057 to spare on the user's movie. leonida-hle serves the live movie for a PlayStation pad or the keyboard (unless LEONIDA_PROMPTS forces a family; LEONIDA_PROMPTS_LIVE=0 restores one family's movie, LEONIDA_PROMPTS_PAD=xbox keeps a keyboard start on the keyboard movie), with lnFamily's default set to the family in use, then a below-normal thread finds the slots by their sentinels through ReadProcessMemory and writes each change of the active family. prompt_glyph_movies.py builds the live movie too (only over the title's). Tested: the added code checked path by path and run in an interpreter over fake display objects, the sentinel scan and writes on a fake heap. Not yet run in the title.
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions