diff options
| author | JosJuice <josjuice@gmail.com> | 2026-07-26 10:48:23 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2026-07-26 11:01:01 +0200 |
| commit | 8a90cbf63843c13584fc8ce9ddd1c5c62726d818 (patch) | |
| tree | 60da2dc61d7f565c8e99a09b6dfbbb1a76a05ae4 /Source/Core/AudioCommon/CoreAudioSoundStream.cpp | |
| parent | 707d3c7a732634ad8d522bd27e52b075f54ac4f3 (diff) | |
IOS/FS: Fix loading savestate when files are open
We already had code to close open host files when reading or writing a
savestate, but due to d35fe1b we also need to close open guest files
when reading a savestate, otherwise DoStateRead fails to delete them.
I was considering an alternative solution where instead of copying and
clearing m_handles, we just set `handle.opened = false;` for each handle
before reading a savestate (but not before writing a savestate).
However, this wouldn't solve the problem of DoStateWriteOrMeasure's
calls to OpenFile failing due to all handles being open. I'm not aware
of any games that have that many handles open, though.
Diffstat (limited to 'Source/Core/AudioCommon/CoreAudioSoundStream.cpp')
0 files changed, 0 insertions, 0 deletions
