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

Function CreateBackupSaveState

src/state.cpp:1054–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052
1053
1054void 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
1063void SwapSaveState()
1064{

Callers 1

FCEUSS_SaveFunction · 0.85

Calls 2

CheckFileExistsFunction · 0.85

Tested by

no test coverage detected