| 1040 | //************************************************************************* |
| 1041 | |
| 1042 | string GenerateBackupSaveStateFn(const char *fname) |
| 1043 | { |
| 1044 | //This backup is for the backup "slot" for any savestate made. Example: smb.fc0 becomes smb-bak.fc0 |
| 1045 | string filename; |
| 1046 | filename = fname; //Convert fname to a string object |
| 1047 | int x = filename.find_last_of("."); //Find file extension |
| 1048 | filename.insert(x,"-bak"); //add "-bak" before the dot. |
| 1049 | |
| 1050 | return filename; |
| 1051 | } |
| 1052 | |
| 1053 | |
| 1054 | void CreateBackupSaveState(const char *fname) |
no outgoing calls
no test coverage detected