MCPcopy Create free account
hub / github.com/dborth/fceugx / LoadBackup

Function LoadBackup

source/fceultra/state.cpp:1179–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177}
1178
1179void LoadBackup()
1180{
1181 if (!undoLS) return;
1182 string filename = GetBackupFileName(); //Get backup filename
1183 if (CheckBackupSaveStateExist())
1184 {
1185 //internalSaveLoad = true;
1186 FCEUSS_Load(filename.c_str()); //Load it
1187 //internalSaveLoad = false;
1188 redoLS = true; //Flag redoLoadState
1189 undoLS = false; //Flag that LoadBackup cannot be run again
1190 }
1191 else
1192 FCEUI_DispMessage("Error: Could not load %s",0,filename.c_str());
1193}
1194
1195void RedoLoadState()
1196{

Callers

nothing calls this directly

Calls 3

GetBackupFileNameFunction · 0.85
FCEUSS_LoadFunction · 0.85

Tested by

no test coverage detected