From d6ecbd77ccd78166445518d8737ac833e1265aa2 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 11 Aug 2023 02:10:55 +0300 Subject: [PATCH] try to fix reset in HLE mode --- frontend/libretro.c | 2 ++ frontend/menu.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/frontend/libretro.c b/frontend/libretro.c index 3fc594b8..72939585 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2728,6 +2728,8 @@ void retro_run(void) { rebootemu = 0; SysReset(); + if (Config.HLE) + LoadCdrom(); } print_internal_fps(); diff --git a/frontend/menu.c b/frontend/menu.c index 4723a10e..cdeeae2c 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -2020,6 +2020,10 @@ static int reset_game(void) ClosePlugins(); OpenPlugins(); SysReset(); + if (Config.HLE) { + if (LoadCdrom() == -1) + return -1; + } return 0; } -- 2.39.5