mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
f419faa408
Donkey Kong Country Returns is writing new data to some files in /tmp when loading each level. But the savestate code was opening the files a second time and reading some old and stale data out. As of #3798, dolphin now correctly restores that stale data to /tmp, which broke DKCR (and probally countless other games). This PR closes all file handles before saving and loading savestates, which flushes the data out and pervents this issue. (old savestates are corrupted and will still cause crashes if loaded)