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

Function Snapshot_LoadState

source/SaveState.cpp:482–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void Snapshot_LoadState()
483{
484 const std::string ext_aws = (".aws");
485 const size_t pos = g_strSaveStatePathname.size() - ext_aws.size();
486 if (g_strSaveStatePathname.find(ext_aws, pos) != std::string::npos) // find ".aws" at end of pathname
487 {
488 GetFrame().FrameMessageBox(
489 "Save-state v1 no longer supported.\n"
490 "Please load using AppleWin 1.27, and re-save as a v2 state file.",
491 "Load State",
492 MB_ICONEXCLAMATION | MB_SETFOREGROUND);
493
494 return;
495 }
496
497 LogFileOutput("Loading Save-State from %s\n", g_strSaveStatePathname.c_str());
498 Snapshot_LoadState_v2();
499}
500
501//-----------------------------------------------------------------------------
502

Callers 3

Snapshot_StartupFunction · 0.85
WndProcMethod · 0.85
RepeatInitializationFunction · 0.85

Calls 3

LogFileOutputFunction · 0.85
Snapshot_LoadState_v2Function · 0.85
FrameMessageBoxMethod · 0.80

Tested by

no test coverage detected