MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Snapshot_Shutdown

Function Snapshot_Shutdown

source/SaveState.cpp:577–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void Snapshot_Shutdown()
578{
579 static bool bDone = false;
580
581 _ASSERT(!bDone);
582 _ASSERT(!g_bRestart);
583 if (!g_saveStateOnExit || bDone)
584 return;
585
586 Snapshot_SaveState();
587
588 bDone = true; // Debug flag: this func should only be called once, and never on a g_bRestart
589}

Callers 1

WndProcMethod · 0.85

Calls 1

Snapshot_SaveStateFunction · 0.85

Tested by

no test coverage detected