notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up switching between dynarec and interpreter
[pcsx_rearmed.git]
/
frontend
/
libretro.c
diff --git
a/frontend/libretro.c
b/frontend/libretro.c
index
f4b23cd
..
84baeda
100644
(file)
--- a/
frontend/libretro.c
+++ b/
frontend/libretro.c
@@
-1966,9
+1966,11
@@
static void update_variables(bool in_flight)
psxCpu = (Config.Cpu == CPU_INTERPRETER) ? &psxInt : &psxRec;
if (psxCpu != prev_cpu)
{
psxCpu = (Config.Cpu == CPU_INTERPRETER) ? &psxInt : &psxRec;
if (psxCpu != prev_cpu)
{
+ prev_cpu->Notify(R3000ACPU_NOTIFY_BEFORE_SAVE, NULL);
prev_cpu->Shutdown();
psxCpu->Init();
prev_cpu->Shutdown();
psxCpu->Init();
- psxCpu->Reset(); // not really a reset..
+ psxCpu->Reset();
+ psxCpu->Notify(R3000ACPU_NOTIFY_AFTER_LOAD, NULL);
}
}
#endif /* !DRC_DISABLE */
}
}
#endif /* !DRC_DISABLE */