aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutechre2020-05-02 22:39:37 +0200
committerGitHub2020-05-02 22:39:37 +0200
commit14e45ca252a6b0bcd0863310b862538eb3af8aee (patch)
tree8eb7fff861b93f6990261b74f38ed1fe9c1dacfb
parentf542ede8394df9acd50c46e8c9c5483192f4c3d0 (diff)
parent44747c73cf572febe81ff687c81548ce5b5de493 (diff)
downloadpcsx_rearmed-14e45ca252a6b0bcd0863310b862538eb3af8aee.tar.gz
pcsx_rearmed-14e45ca252a6b0bcd0863310b862538eb3af8aee.tar.bz2
pcsx_rearmed-14e45ca252a6b0bcd0863310b862538eb3af8aee.zip
Merge pull request #411 from Exalm/wip/exalm/oops
Automatically disable lightrec when no bios is present, take 2
-rw-r--r--frontend/libretro.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index bd7dc43..6872dde 100644
--- 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;