notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f542ede
)
Automatically disable lightrec when no bios is present, take 2
author
Alexander Mikhaylenko
<alexm@gnome.org>
Thu, 30 Apr 2020 11:15:08 +0000
(16:15 +0500)
committer
Alexander Mikhaylenko
<alexm@gnome.org>
Thu, 30 Apr 2020 11:17:23 +0000
(16:17 +0500)
Make sure to only do it with lightrec and not ARM dynarec.
frontend/libretro.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/libretro.c
b/frontend/libretro.c
index
bd7dc43
..
6872dde
100644
(file)
--- a/
frontend/libretro.c
+++ b/
frontend/libretro.c
@@
-1773,13
+1773,18
@@
static void update_variables(bool in_flight)
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value)
{
R3000Acpu *prev_cpu = psxCpu;
+#if defined(LIGHTREC)
+ bool can_use_dynarec = found_bios;
+#else
+ bool can_use_dynarec = 1;
+#endif
#ifdef _3DS
if(!__ctr_svchax)
Config.Cpu = CPU_INTERPRETER;
else
#endif
- if (strcmp(var.value, "disabled") == 0)
+ if (strcmp(var.value, "disabled") == 0
|| !can_use_dynarec
)
Config.Cpu = CPU_INTERPRETER;
else if (strcmp(var.value, "enabled") == 0)
Config.Cpu = CPU_DYNAREC;