| 480 | } |
| 481 | |
| 482 | void 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 |
no test coverage detected