Fix saving states freezing up emulation

Only for about half a second but noticeable nonetheless
This commit is contained in:
spycrab 2019-08-01 19:59:29 +02:00
commit 04764f8b7f
4 changed files with 8 additions and 6 deletions

View file

@ -323,7 +323,7 @@ static void CompressAndDumpState(CompressAndDumpState_args save_args)
if (!File::Rename(filename, File::GetUserPath(D_STATESAVES_IDX) + "lastState.sav"))
Core::DisplayMessage("Failed to move previous state to state undo backup", 1000);
else
else if (File::Exists(filename + ".dtm"))
File::Rename(filename + ".dtm", File::GetUserPath(D_STATESAVES_IDX) + "lastState.sav.dtm");
}