M-26: [D] [Debug] ini flags mirroring GE_PCDUMP / GE_INPUTLOG

- config.c: Debug.FrameDump (string) + Debug.InputLog (int).
  configGetFrameDump()/configGetInputLog() check the env var first
  (tools_pc/*.sh unaffected), fall back to the ini.
- video.c / input.c consumers switched to the accessors.
- GE_DETERM is design-only (D117), not mirrored.
- Verified: ini-only FrameDump=40-120:20 -> exactly 5 frames; GE_PCDUMP
  still overrides; -level_09 crash-free.
This commit is contained in:
James Dansereau committed 2026-08-30 13:00:52 -04:00
1 parent 710d02f802
commit 326564736d
6 files changed
+56 -4

No files matched your search

+3
View File
@@ -328,6 +328,9 @@ prior behaviour. Full review: **`docs/M-26-QOL-REVIEW.md`**.
SDL relative-scale / warp hints off in `inputInit` — no OS pointer accel.
- **E — `--help` / `--version`** in `main.c` before `crashInit()`: build
id, usage, the 21-level `-level_XX` table.
- **D — `[Debug]` ini flags.** `Debug.FrameDump` (mirrors `GE_PCDUMP`),
`Debug.InputLog` (mirrors `GE_INPUTLOG`); env var wins, ini is the
fallback. `config.c` `configGetFrameDump()`/`configGetInputLog()`.
- **Verified:** build green (`ntsc-final`); `-level_09` + `-level_20`
boot crash-free 6/6 GE_PCDUMP frames (unregressed); `ge007.ini` gains a
populated `[Window]` block on exit.
+16
View File
@@ -50,6 +50,22 @@ so nothing changes unless the user opts in.
- `--help` / `-h` → the above + usage + the 21 solo-level `-level_XX`
table (matches `tools_pc/level_sweep.sh` / `playtest.sh --list`), exit 0.
## D — `[Debug]` ini flags mirroring the dev env vars
`port/src/config.c`: `Debug.FrameDump` (string, mirrors `GE_PCDUMP`,
`"lo-hi[:step]"`) and `Debug.InputLog` (int, mirrors `GE_INPUTLOG`).
`configGetFrameDump()` / `configGetInputLog()` check the env var first
(existing `tools_pc/*.sh` scripts unaffected), fall back to the ini.
Consumers switched: `video.c videoEndFrame` (was `gfx_opengl_pcdump_enabled()`
+ `getenv`), `input.c inputComputePad` (was `getenv("GE_INPUTLOG")`).
`GE_DETERM` is design-only (D117, no code path) so it is not mirrored.
- **Verified:** ini-only `FrameDump = 40-120:20` produces exactly those 5
frames; `GE_PCDUMP` still overrides; `-level_09` crash-free.
- **Cosmetic:** `configSave` emits int and string opts in separate passes,
so a section with both (`[Debug]`) prints its header twice. Round-trips
fine on reload. Pre-existing quirk, not worth the churn now.
## Not done (Tier 2/3 from the board)
F (minidump), G (PNG screenshots), H (rumble), I/J (in-render overlay /