diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 18:02:38 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 18:02:38 -0500 |
| commit | 89991dc8e0d28845082956529007f30ebeb74c19 (patch) | |
| tree | 541408a6b65daaa1b4f7bb1cbd7b3c8b99c7c0fb /docs/mod-menu.md | |
| parent | 4e55134cde21a50fe8bf889c773f1c4f73786922 (diff) | |
Docs: the keyboard and mouse keys for players, and how the layout knows what the player is in
d3d12/README.md lists the keys on foot and in a vehicle. docs/gameinput.md
has the two tables with the pad button of each key, the GTA V keys left
out and why, the hand-over rule, what is read from the title (and that it
was read from the code, not yet seen running), the speed rule's limits and
the switches. docs/mod-menu.md counts the eleventh place.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/mod-menu.md')
| -rw-r--r-- | docs/mod-menu.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/mod-menu.md b/docs/mod-menu.md index 064fa1390..18023dd0f 100644 --- a/docs/mod-menu.md +++ b/docs/mod-menu.md | |||
| @@ -194,9 +194,11 @@ menu. | |||
| 194 | way). Our hook is the one | 194 | way). Our hook is the one |
| 195 | `call` of the cheat input function: it calls that function, then, if something was asked, gives the same queue | 195 | `call` of the cheat input function: it calls that function, then, if something was asked, gives the same queue |
| 196 | a closure of its own. So our work runs exactly where a cheat of the title's would. | 196 | a closure of its own. So our work runs exactly where a cheat of the title's would. |
| 197 | - **Finding it again.** Ten places are named by patterns of 24 to 77 bytes (19 to 36 of them fixed, `??` for | 197 | - **Finding it again.** Eleven places are named by patterns of 24 to 77 bytes (19 to 36 of them fixed, `??` for |
| 198 | what another build changes: short signatures, no longer than they must be), which give 19 things: 8 functions, | 198 | what another build changes: short signatures, no longer than they must be), which give 20 things: 8 functions, |
| 199 | the hook's call, 9 globals and the place of the level in the wanted state. Each | 199 | the hook's call, 10 globals and the place of the level in the wanted state (the eleventh place, the global of |
| 200 | the player's vehicle, is for the keyboard and mouse layout and is looked up without the game actions too: | ||
| 201 | `docs/gameinput.md`). Each | ||
| 200 | pattern is in the 99.9 MB of code exactly once (`cargo test -p leonida-loader game_actions` with | 202 | pattern is in the 99.9 MB of code exactly once (`cargo test -p leonida-loader game_actions` with |
| 201 | `LEONIDA_GAME_DIR` set checks it, and that functions lie in code and globals behind it). None contains a load | 203 | `LEONIDA_GAME_DIR` set checks it, and that functions lie in code and globals behind it). None contains a load |
| 202 | of the thread's TLS array, which the loader rewrites. A place that is not found leaves its items saying so; the | 204 | of the thread's TLS array, which the loader rewrites. A place that is not found leaves its items saying so; the |
| @@ -396,7 +398,7 @@ interpreter is simply not found by these signatures, which is why the run-time s | |||
| 396 | Skipped without a D3D12 device. | 398 | Skipped without a D3D12 device. |
| 397 | - `cargo test -p leonida-hle --features diagnostics --lib -- gameinput clock`: the input shim with the kept keys in | 399 | - `cargo test -p leonida-hle --features diagnostics --lib -- gameinput clock`: the input shim with the kept keys in |
| 398 | place, and the title's clock. | 400 | place, and the title's clock. |
| 399 | - `cargo test -p leonida-loader --lib game_actions`: the ten places on made-up code (found wherever they lie, | 401 | - `cargo test -p leonida-loader --lib game_actions`: the eleven places on made-up code (found wherever they lie, |
| 400 | displacements and numbers read, a place missing, twice or pointing outside left out), the hook on made-up code | 402 | displacements and numbers read, a place missing, twice or pointing outside left out), the hook on made-up code |
| 401 | that runs (the update step calls a function of ours and returns as before) and, with `LEONIDA_GAME_DIR` set to | 403 | that runs (the update step calls a function of ours and returns as before) and, with `LEONIDA_GAME_DIR` set to |
| 402 | the package's folder, every place once in the retail executable, functions in code and globals behind it. | 404 | the package's folder, every place once in the retail executable, functions in code and globals behind it. |