MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / settingsFileEmpty

Function settingsFileEmpty

TheForceEngine/TFE_Settings/settings.cpp:278–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 }
277
278 bool settingsFileEmpty()
279 {
280 bool isEmpty = true;
281 FileStream settings;
282 if (settings.open(s_settingsPath, Stream::MODE_READ))
283 {
284 isEmpty = settings.getSize() == 0u;
285 settings.close();
286 }
287 return isEmpty;
288 }
289
290 bool readFromDisk()
291 {

Callers 1

initFunction · 0.85

Calls 3

openMethod · 0.45
getSizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected