mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-27 10:38:46 -04:00
2d67bb9a79
Cancel the previous command's outstanding second-response interrupt when a new CD command is accepted (psx-spx command flow; DuckStation BeginCommand semantics). Without this, a Pause(0x09) INT2 survives into the guest's next Setmode/Setloc/ReadN sequence and fires mid-read as a stale COMPLETE — LIBDS drivers treat it as a read failure, corrupting the streamed resource chain. Cross-validated: C-12 Final Resistance mission 1 PC=0 null-callback termination disappeared after absorbing this fix (DEVLOG 2026-08-05). MOHU Mission 1 freeze in a DsRead FATAL/retry loop on single-sector marker reads. Also guard beetle SIGSTOP trap behind #ifndef _WIN32 (Windows has no SIGSTOP). (cherry picked from commit 2c43fc69c66242a86183156a6f1e60b2f81b1e47) (cherry picked from commit c03fe5ba3d49241dfaedb344db6ad9c977070722)