try/catch the File.Move when making a backup savestate and do nothing

This commit is contained in:
adelikat 2016-02-27 09:58:41 -05:00
parent 35f2599c13
commit fa3ccc59e7
1 changed files with 8 additions and 1 deletions

View File

@ -3801,7 +3801,14 @@ namespace BizHawk.Client.EmuHawk
backupFile.Delete();
}
File.Move(path, backup);
try
{
File.Move(path, backup);
}
catch
{
// Eat it, this will happen rarely and the user will rarely need the file, so the odds of simply not making the backup is very unlikely
}
}
SaveState(path, quickSlotName, false);