Automatically disable lightrec when no bios is present
authorAlexander Mikhaylenko <alexm@gnome.org>
Sun, 26 Apr 2020 16:34:20 +0000 (21:34 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Sun, 26 Apr 2020 16:35:29 +0000 (21:35 +0500)
Fixes https://github.com/libretro/pcsx_rearmed/issues/404

frontend/libretro.c

index bd7dc43..2a175cc 100644 (file)
@@ -1779,7 +1779,7 @@ static void update_variables(bool in_flight)
          Config.Cpu = CPU_INTERPRETER;
       else
 #endif
-      if (strcmp(var.value, "disabled") == 0)
+      if (strcmp(var.value, "disabled") == 0 || !found_bios)
          Config.Cpu = CPU_INTERPRETER;
       else if (strcmp(var.value, "enabled") == 0)
          Config.Cpu = CPU_DYNAREC;