docs: move the runtime patch to patch/ — docs/ is for documents

patch/ holds the machine-readable artifacts (the runtime delta vs
upstream); docs/ keeps prose. README references updated.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-10-23 12:08:15 -04:00
co-authored by Claude Code
parent faafb72236
commit bfedb5b725
2 changed files with 3 additions and 3 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ framework) and added to `ports/king_kong_le-0.97.port`.
| File | What it is | | File | What it is |
|---|---| |---|---|
| `gamelog.c` | the logger: a passive PAD mode. It never `pm_begin()s`, never blocks, allocates nothing — it only watches and writes `[GAMELOG]` lines | | `gamelog.c` | the logger: a passive PAD mode. It never `pm_begin()s`, never blocks, allocates nothing — it only watches and writes `[GAMELOG]` lines |
| `pad_mode_runtime.c` | the PAD Modes SDK runtime, **patched**: (a) a GAMELOG section — passive stock-mode and award watching, exporting `gl_award_seq()` / `gl_last_award_id()` to modes; (b) the per-edge switch logger to `/dump/switch.log`, named by the port's `switch` lines; (c) the Insider Connected gate made passive; (d) multi-game port selection (`port_select` — below). Our exact changes vs upstream: `docs/runtime-patch.diff` | | `pad_mode_runtime.c` | the PAD Modes SDK runtime, **patched**: (a) a GAMELOG section — passive stock-mode and award watching, exporting `gl_award_seq()` / `gl_last_award_id()` to modes; (b) the per-edge switch logger to `/dump/switch.log`, named by the port's `switch` lines; (c) the Insider Connected gate made passive; (d) multi-game port selection (`port_select` — below). Our exact changes vs upstream: `patch/runtime-patch.diff` |
| `pad_mode.h`, `pad_stock.h` | unmodified SDK headers (needed by the build) | | `pad_mode.h`, `pad_stock.h` | unmodified SDK headers (needed by the build) |
| `build_mode.sh` | unmodified SDK build script: compiles the runtime + your mode into one `-nostdlib` shared object and refuses banned libc calls | | `build_mode.sh` | unmodified SDK build script: compiles the runtime + your mode into one `-nostdlib` shared object and refuses banned libc calls |
| `event_probe.c`, `event_read.py` | the event-bus measurement instrument and its log reader — how bus event ids are identified for another game (MODE_SDK.md, "Measuring events on another game") | | `event_probe.c`, `event_read.py` | the event-bus measurement instrument and its log reader — how bus event ids are identified for another game (MODE_SDK.md, "Measuring events on another game") |
@@ -67,7 +67,7 @@ A game update changes the words, so its old port stops matching — the machine
logs the refusal and runs stock until the new game version's port is deployed. logs the refusal and runs stock until the new game version's port is deployed.
The switch log's buttons and their names come from the port's `switch` lines; The switch log's buttons and their names come from the port's `switch` lines;
a port that names none logs no switch edges. a port that names none logs no switch edges.
| `docs/runtime-patch.diff` | this project's changes to the upstream runtime (base: `pinball-asset-decryptor` commit `7faf8f08`, the last upstream change to that file) | | `patch/runtime-patch.diff` | this project's changes to the upstream runtime (base: `pinball-asset-decryptor` commit `7faf8f08`, the last upstream change to that file) |
## What gets logged ## What gets logged
@@ -286,7 +286,7 @@ Built on the PAD Modes SDK
Everything in this repo is unmodified SDK content except: Everything in this repo is unmodified SDK content except:
- `gamelog.c` (new) - `gamelog.c` (new)
- `pad_mode_runtime.c` (upstream runtime + the patch in `docs/runtime-patch.diff`) - `pad_mode_runtime.c` (upstream runtime + the patch in `patch/runtime-patch.diff`)
- `tests/test_multi_game.py` (new) - `tests/test_multi_game.py` (new)
- `README.md` - `README.md`