| 1107 | //************************************************************************* |
| 1108 | |
| 1109 | string GetBackupFileName() |
| 1110 | { |
| 1111 | //This backup savestate is a special one specifically made whenever a loadstate occurs so that the user's place in a movie/game is never lost |
| 1112 | //particularly from unintentional loadstating |
| 1113 | string filename; |
| 1114 | int x; |
| 1115 | |
| 1116 | filename = FCEU_MakeFName(FCEUMKF_STATE,CurrentState,0); //Generate normal savestate filename |
| 1117 | x = filename.find_last_of("."); //Find last dot |
| 1118 | filename = filename.substr(0,x); //Chop off file extension |
| 1119 | filename.append(".bak.fc0"); //add .bak |
| 1120 | |
| 1121 | return filename; |
| 1122 | } |
| 1123 | |
| 1124 | bool CheckBackupSaveStateExist() |
| 1125 | { |
no test coverage detected