mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-27 18:52:11 -04:00
20b9ba6cc8
Closing the save-state menu (Square save / Circle back / toggle key) or the rewind filmstrip resumes the guest while the closing press is still held on the pad, so the game samples it as gameplay input - saving a state in a fighter throws a punch, and since the queued save executes after the guest resumes, that punch gets baked into the snapshot. Loads already solve exactly this with savestate_input_guard_arm(), which feeds neutral pads until the held input is released (min 90 ms, capped at 700 ms). Arm the same guard whenever either host pause loop hands control back to the guest, covering every close path: save, cancel/back, Esc, the toggle hotkey, and rewind accept/cancel.