bool EXPORT_CALL b_EmuStart() //returns false if it failed.It can fail if non inited and implicit init failed. { bool init=Init_DC(); if (init==false) return false; Start_DC(); return true; }
void SwitchCpu() { if((settings.dynarec.Enable==0 && sh4_cpu->ResetCache==0) || (settings.dynarec.Enable!=0 && sh4_cpu->ResetCache!=0) ) { return;//nothing to do ... } bool bStart=false; if (sh4_cpu) { if (sh4_cpu->IsCpuRunning()) { bStart=true; Stop_DC(); } sh4_cpu->Term(); } if(settings.dynarec.Enable) { sh4_cpu=Get_Sh4Recompiler(); log("Switched to Recompiler\n"); } else { sh4_cpu=Get_Sh4Interpreter(); log("Switched to Interpreter\n"); } sh4_cpu->Init(); if (bStart) Start_DC(); }
void EmuResume() { Start_DC(); }