try to fix reset in HLE mode
authornotaz <notasas@gmail.com>
Thu, 10 Aug 2023 23:10:55 +0000 (02:10 +0300)
committernotaz <notasas@gmail.com>
Thu, 10 Aug 2023 23:11:43 +0000 (02:11 +0300)
frontend/libretro.c
frontend/menu.c

index 807e683..4d29e16 100644 (file)
@@ -2726,6 +2726,8 @@ void retro_run(void)
    {
       rebootemu = 0;
       SysReset();
+      if (Config.HLE)
+         LoadCdrom();
    }
 
    print_internal_fps();
index b480506..9586bae 100644 (file)
@@ -2016,6 +2016,10 @@ static int reset_game(void)
        ClosePlugins();
        OpenPlugins();
        SysReset();
+       if (Config.HLE) {
+               if (LoadCdrom() == -1)
+                       return -1;
+       }
        return 0;
 }