diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 00:06:53 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 00:11:49 -0500 |
| commit | 44511989734b97615844a111fb028a75348c48a1 (patch) | |
| tree | e96ead7fcac6b1b81bc22d085ec42adc75d00cad /docs/lua-modding.md | |
| parent | 312dfeac0da7e2e205ed7202df88a9c594aa33ca (diff) | |
leonida-gpu, hle, app: wire the Lua mods into the renderer, the input shim and the start-up
What: the renderer starts the mods' thread where it makes the presenter
(leonida_lua::start(), before the menu's, so the F4 menu has its Mods page), calls
leonida_lua::tick() once per present (one atomic load with LEONIDA_LUA=0), draws the
mods' overlay with a second trainer Overlay at the place the drawing says
(Frame::origin), before the F4 menu, and lends the mods checked reads and writes of
the title's memory (host::lua_read over read_into; lua_write over safecopy::copy,
or NtWriteVirtualMemory with LEONIDA_SAFE_COPY=0). The input shim adds the keys mods
hold (knobs::injected_keys) to what it already feeds the title for LEONIDA_KEYS and
LEONIDA_KEYS_FILE. The app tells the mods where the title's image is mapped.
Why: the pieces of the last two commits were not connected to anything.
How checked: cargo check --profile diag -p leonida --features diagnostics and
cargo check -p leonida-gpu --features diagnostics --tests (no new warnings). NOT run:
no GPU test (the GPU was in use) and not the title; plain `cargo check -p leonida`
(no diagnostics) already fails on the base at gameinput.rs `held_from_file()`, which
only exists with the feature - left as it is. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/lua-modding.md')
0 files changed, 0 insertions, 0 deletions