summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/WorkQueueThreadTest.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-07-26 10:48:23 +0200
committerOatmealDome <julian@oatmealdome.me>2026-08-10 17:50:28 -0400
commit6376e0c1f130d7c3036f6be2bc38af1ea113242c (patch)
tree2b931c6234c21f79c1c42f8cc465f68c54cbecce /Source/UnitTests/Common/WorkQueueThreadTest.cpp
parentf29ed945d0913f76e3c67eaf4e806f30244bf042 (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/UnitTests/Common/WorkQueueThreadTest.cpp')
0 files changed, 0 insertions, 0 deletions