From dc4f3c5488deb32faf3dbe079af179eae56787b8 Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:17:51 +0100 Subject: [PATCH 1/3] LIBRETRO-usrintrf: disable "UI Cancel" event without osd menu otherwise libretro core hangs on return --- src/usrintrf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usrintrf.c b/src/usrintrf.c index 147ee46..83237f7 100644 --- a/src/usrintrf.c +++ b/src/usrintrf.c @@ -3450,8 +3450,10 @@ if (Machine->gamedrv->flags & GAME_COMPUTER) /* if the user pressed ESC, stop the emulation */ /* but don't quit if the setup menu is on screen */ +#ifndef __LIBRETRO__ if (setup_selected == 0 && input_ui_pressed(IPT_UI_CANCEL)) return 1; +#endif if (setup_selected == 0 && input_ui_pressed(IPT_UI_CONFIGURE)) { -- 2.45.2.windows.1