From: notaz Date: Thu, 10 Aug 2023 23:10:55 +0000 (+0300) Subject: try to fix reset in HLE mode X-Git-Tag: r24l~250 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ecbd77ccd78166445518d8737ac833e1265aa2;p=pcsx_rearmed.git try to fix reset in HLE mode --- 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; }