todo: consolidate CtrlReset() and ResetMachineState()
| 539 | |
| 540 | // todo: consolidate CtrlReset() and ResetMachineState() |
| 541 | void ResetMachineState() |
| 542 | { |
| 543 | LogFileOutput("Apple II power-cycle\n"); |
| 544 | |
| 545 | GetCardMgr().Reset(true); |
| 546 | g_bFullSpeed = 0; // Might've hit reset in middle of InternalCpuExecute() - so beep may get (partially) muted |
| 547 | |
| 548 | MemReset(); // calls CpuInitialize(), CNoSlotClock.Reset() |
| 549 | GetPravets().Reset(); |
| 550 | if (GetCardMgr().QuerySlot(SLOT6) == CT_Disk2) |
| 551 | dynamic_cast<Disk2InterfaceCard&>(GetCardMgr().GetRef(SLOT6)).Boot(); |
| 552 | GetVideo().VideoResetState(); |
| 553 | KeybReset(); |
| 554 | JoyReset(); |
| 555 | SpkrReset(); |
| 556 | SetActiveCpu(GetMainCpu()); |
| 557 | #ifdef USE_SPEECH_API |
| 558 | g_Speech.Reset(); |
| 559 | #endif |
| 560 | |
| 561 | SoundCore_SetFade(FADE_NONE); |
| 562 | LogFileTimeUntilFirstKeyReadReset(); |
| 563 | } |
| 564 | |
| 565 | |
| 566 | //=========================================================================== |
no test coverage detected