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