MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / autosaveCheck

Function autosaveCheck

src/OpenLoco/src/OpenLoco.cpp:559–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557 }
558
559 static void autosaveCheck()
560 {
561 _monthsSinceLastAutosave++;
562
563 if (!SceneManager::isTitleMode())
564 {
565 auto freq = Config::get().autosaveFrequency;
566 if (freq > 0 && _monthsSinceLastAutosave >= freq)
567 {
568 autosave();
569 autosaveClean();
570 autosaveReset();
571 }
572 }
573 }
574
575 // 0x004968C7
576 static void dateTick()

Callers 1

dateTickFunction · 0.85

Calls 5

isTitleModeFunction · 0.85
autosaveFunction · 0.85
autosaveCleanFunction · 0.85
autosaveResetFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected