MCPcopy Create free account
hub / github.com/TASEmulators/fceux / GenerateBackupSaveStateFn

Function GenerateBackupSaveStateFn

src/state.cpp:1042–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040//*************************************************************************
1041
1042string 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
1054void CreateBackupSaveState(const char *fname)

Callers 2

CreateBackupSaveStateFunction · 0.85
SwapSaveStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected