From d512faf7162c167d4ad34c5d13601697c6205ae1 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 807e683f..4d29e165 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2726,6 +2726,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 b4805062..9586baed 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -2016,6 +2016,10 @@ static int reset_game(void) ClosePlugins(); OpenPlugins(); SysReset(); + if (Config.HLE) { + if (LoadCdrom() == -1) + return -1; + } return 0; } -- 2.39.5