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:12:04 +0000 (02:12 +0300)
frontend/libretro.c
frontend/menu.c

index 3fc594b..7293958 100644 (file)
@@ -2728,6 +2728,8 @@ void retro_run(void)
    {
       rebootemu = 0;
       SysReset();
+      if (Config.HLE)
+         LoadCdrom();
    }
 
    print_internal_fps();
index 4723a10..cdeeae2 100644 (file)
@@ -2020,6 +2020,10 @@ static int reset_game(void)
        ClosePlugins();
        OpenPlugins();
        SysReset();
+       if (Config.HLE) {
+               if (LoadCdrom() == -1)
+                       return -1;
+       }
        return 0;
 }