mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-24 00:02:45 +02:00
User ask: a debug toggle that always enables all level access and all cheats, for easier testing. Root-caused a single choke point: fileGetIsCheatUnlocked() (file2.c:391) is a pure, side-effect-free save-bitfield read that BOTH the mission-select lock (file.c:59) and the cheat-menu availability check (frontCheckIfCheatIsUnlocked, front.c:1009) route through. Short-circuiting it to always-true under an env flag unlocks both surfaces in one change. Bonus: exposes leftover Rare dev cheats otherwise unreachable (CHEAT_LINEMODE wireframe - useful for D222-style culling bugs, CHEAT_BONDPHASE, CHEAT_DEBUG_POS/UNK5). Plan: #ifdef PORT env-gated (GE_DEBUG_UNLOCKALL), default off = zero behavior change, no save-data mutation. Not implemented yet. Claude-Session: https://claude.ai/code/session_016TaKy6AAsVUTfjkhrX6CjG