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

Function CheckFileExists

src/fceu.cpp:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144bool CheckFileExists(const char* filename) {
145 //This function simply checks to see if the given filename exists
146 if (!filename) return false;
147 fstream test;
148 test.open(filename, fstream::in);
149
150 if (test.fail()) {
151 test.close();
152 return false;
153 } else {
154 test.close();
155 return true;
156 }
157}
158
159void FCEU_TogglePPU(void) {
160 newppu ^= 1;

Callers 5

FCEUSS_SaveFunction · 0.85
CreateBackupSaveStateFunction · 0.85
SwapSaveStateFunction · 0.85
FCEUI_MakeBackupMovieFunction · 0.85
savestate_create_aliasedFunction · 0.85

Calls 3

failMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected