mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-28 02:56:36 -04:00
e397d6abb8
main() sets savestate_set_disc_scope() once, from the boot disc. A mid-session disc change left it behind, so a state saved after a swap was filed under the disc the game booted from. That is the exact mix-up the scoping exists to prevent, and nothing in the slot list would have shown it, because every disc of a set shares one entry_pc. cdrom_disc_select() now updates the scope, rather than the one caller doing it, so any future caller stays correct. Two smaller fixes in the same function. A failed iso_open() left s_disc_selected naming a disc that is no longer mounted; it now reports none. A roster path longer than the buffer was silently truncated and would open the wrong file or nothing; it is now dropped.