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

Function GetBackupFileName

src/state.cpp:1109–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107//*************************************************************************
1108
1109string GetBackupFileName()
1110{
1111 //This backup savestate is a special one specifically made whenever a loadstate occurs so that the user's place in a movie/game is never lost
1112 //particularly from unintentional loadstating
1113 string filename;
1114 int x;
1115
1116 filename = FCEU_MakeFName(FCEUMKF_STATE,CurrentState,0); //Generate normal savestate filename
1117 x = filename.find_last_of("."); //Find last dot
1118 filename = filename.substr(0,x); //Chop off file extension
1119 filename.append(".bak.fc0"); //add .bak
1120
1121 return filename;
1122}
1123
1124bool CheckBackupSaveStateExist()
1125{

Callers 3

BackupLoadStateFunction · 0.85
LoadBackupFunction · 0.85

Calls 1

FCEU_MakeFNameFunction · 0.85

Tested by

no test coverage detected