mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
696ffbd1f6
The COPY/DELETE flows were silently no-oping the SIO write protocol: 60 dispatches per copy were missing the 3-instruction predicate fn at 0xBFC0989C (the WRITE-command sibling of 0xBFC09890), so the BIOS's write-handler fork test returned junk via uninitialized v0 and the BIOS skipped sending 0x57 over SIO entirely. The in-memory card cache appeared updated (visual UI worked, leave/re-enter showed copies) but nothing reached memcard_write_sector or the .mcd files. Also reorganize memcard directory resolution: production builds put cards next to the exe; dev builds (CMake build tree detected) keep them in the project root next to bios/ so a runtime rebuild doesn't delete them. --memcard-dir still overrides.