mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
The s > 2 branch in PSPSaveDialog::DoState has been dead code since it was written - the section version was never raised past 2, so ioThreadStatus was reset to SAVEIO_NONE on every savestate load. Loading a state that was saved while a savedata operation was in flight then repeated the operation (or left the dialog waiting on a completion that had already happened), instead of resuming from the recorded status. Restoring the value is safe: DoState joins the IO thread before serializing, so the stored status is only ever SAVEIO_NONE or SAVEIO_DONE, and the operation's effects are already part of the serialized emulated RAM. Old (v2) states still load through the reset path.