| 1052 | |
| 1053 | |
| 1054 | void CreateBackupSaveState(const char *fname) |
| 1055 | { |
| 1056 | string newFilename = GenerateBackupSaveStateFn(fname); //Get backup savestate filename |
| 1057 | if (CheckFileExists(newFilename.c_str())) //See if backup already exists |
| 1058 | remove(newFilename.c_str()) ; //If so, delete it |
| 1059 | rename(fname,newFilename.c_str()); //Rename savestate to backup filename |
| 1060 | undoSS = true; //There is a backup savestate file to mast last loaded, so undo is possible |
| 1061 | } |
| 1062 | |
| 1063 | void SwapSaveState() |
| 1064 | { |
no test coverage detected