void SysReset() { // rearmed hack: EmuReset() runs some code when real BIOS is used, // but we usually do reset from menu while GPU is not open yet, // so we need to prevent updateLace() call.. void *real_lace = GPU_updateLace; GPU_updateLace = dummy_lace; g_emu_resetting = 1; // reset can run code, timing must be set pl_timing_prepare(Config.PsxType); EmuReset(); // hmh core forgets this CDR_stop(); GPU_updateLace = real_lace; g_emu_resetting = 0; }
void SysReset( void ) { LOG_ENTER(); // rearmed hack: EmuReset() runs some code when real BIOS is used, // but we usually do reset from menu while GPU is not open yet, // so we need to prevent updateLace() call.. void* real_lace = GPUupdateLace; GPU_updateLace = dummy_lace; LOG_STEP(); EmuReset(); LOG_STEP(); // hmh core forgets this CDR_stop(); GPU_updateLace = real_lace; LOG_LEAVE(); }