Files
buildroot/package/miyoo/retroarch/libretro-mame2000/0001-LIBRETRO-usrintrf-disable-UI-Cancel-event-without-os.patch
Apaczer e3d39f3e87 PACKAGE: bumpup ver., fix SELECT input & reoptimize libretro-mame2000 (#146)
* PACKAGE: bump libretro-mame2000 version

commit 2ec60f6e1078cf9ba173e80432cc28fd4eea200f

* PACKAGE-mame2000: fix SELECT btn & optimize patches
2025-01-24 08:24:01 +01:00

30 lines
854 B
Diff

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