| 1122 | } |
| 1123 | |
| 1124 | bool CheckBackupSaveStateExist() |
| 1125 | { |
| 1126 | //This function simply checks to see if the backup loadstate exists, the backup loadstate is a special savestate |
| 1127 | //That is made before loading any state, so that the user never loses his data |
| 1128 | string filename = GetBackupFileName(); //Get backup savestate filename |
| 1129 | |
| 1130 | //Check if this filename exists |
| 1131 | fstream test; |
| 1132 | test.open(filename.c_str(),fstream::in); |
| 1133 | |
| 1134 | if (test.fail()) |
| 1135 | { |
| 1136 | test.close(); |
| 1137 | return false; |
| 1138 | } |
| 1139 | else |
| 1140 | { |
| 1141 | test.close(); |
| 1142 | return true; |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | void BackupLoadState() |
| 1147 | { |
no test coverage detected