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,8 +3801,15 @@ namespace BizHawk.Client.EmuHawk
backupFile.Delete(); backupFile.Delete();
} }
try
{
File.Move(path, backup); 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); SaveState(path, quickSlotName, false);