| 575 | } |
| 576 | |
| 577 | void 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 | } |
no test coverage detected