aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2013-01-06 04:11:26 +0200
committernotaz2013-01-06 04:11:26 +0200
commit92879b62c06f6c1d363a138f77f7727d0fc7721e (patch)
treebb404095a1dd49be9796064fdaabba33ec48efb2 /frontend
parent804789d73ee66857216f1e32c74c80dd65ef587f (diff)
downloadpcsx_rearmed-92879b62c06f6c1d363a138f77f7727d0fc7721e.tar.gz
pcsx_rearmed-92879b62c06f6c1d363a138f77f7727d0fc7721e.tar.bz2
pcsx_rearmed-92879b62c06f6c1d363a138f77f7727d0fc7721e.zip
fully reinit drc on change
Diffstat (limited to 'frontend')
-rw-r--r--frontend/menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/menu.c b/frontend/menu.c
index 8e182bf..eb004d8 100644
--- a/frontend/menu.c
+++ b/frontend/menu.c
@@ -2499,9 +2499,12 @@ void menu_prepare_emu(void)
plat_video_menu_leave();
psxCpu = (Config.Cpu == CPU_INTERPRETER) ? &psxInt : &psxRec;
- if (psxCpu != prev_cpu)
+ if (psxCpu != prev_cpu) {
+ prev_cpu->Shutdown();
+ psxCpu->Init();
// note that this does not really reset, just clears drc caches
psxCpu->Reset();
+ }
// core doesn't care about Config.Cdda changes,
// so handle them manually here