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

Function LoadBackup

src/state.cpp:1155–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155void LoadBackup()
1156{
1157 if (!undoLS) return;
1158 string filename = GetBackupFileName(); //Get backup filename
1159 if (CheckBackupSaveStateExist())
1160 {
1161 //internalSaveLoad = true;
1162 FCEUSS_Load(filename.c_str()); //Load it
1163 //internalSaveLoad = false;
1164 redoLS = true; //Flag redoLoadState
1165 undoLS = false; //Flag that LoadBackup cannot be run again
1166 }
1167 else
1168 FCEUI_DispMessage("Error: Could not load %s",0,filename.c_str());
1169}
1170
1171void RedoLoadState()
1172{

Callers 1

AppWndProcFunction · 0.85

Calls 3

GetBackupFileNameFunction · 0.85
FCEUSS_LoadFunction · 0.85

Tested by

no test coverage detected