From d89c7894da75b5459271cb7eece2a51addedbc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Wed, 12 Feb 2025 11:12:42 -0500 Subject: [PATCH] Fix implicit declaration in RetroArch Nintendo Switch build --- .github/workflows/autobuild.yml | 10 +++++++++- retro/retroarch-1.20.0-libnx.patch | 11 +++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 retro/retroarch-1.20.0-libnx.patch diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 9ef5041f..ddb95bf2 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -1100,8 +1100,16 @@ jobs: - name: Build RetroArch run: | + cp retro/retroarch-1.20.0-libnx.patch ~ cd ~ - git clone https://github.com/libretro/RetroArch retroarch --depth 1 -b $(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | jq -r '.tag_name') + tag_name=$(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | jq -r '.tag_name') + git clone https://github.com/libretro/RetroArch retroarch --depth 1 -b $tag_name + if [ $tag_name = 'v1.20.0' ] + then + cd retroarch + git apply ~/retroarch-1.20.0-libnx.patch + cd .. + fi mv mkxp-z_libretro.a retroarch/libretro_libnx.a cd retroarch CLICOLOR_FORCE=1 make -f Makefile.libnx LIBRETRO=mkxp-z diff --git a/retro/retroarch-1.20.0-libnx.patch b/retro/retroarch-1.20.0-libnx.patch new file mode 100644 index 00000000..81e49547 --- /dev/null +++ b/retro/retroarch-1.20.0-libnx.patch @@ -0,0 +1,11 @@ +--- a/menu/menu_driver.c ++++ b/menu/menu_driver.c +@@ -5126,7 +5126,7 @@ bool menu_input_dialog_get_display_kb(void) + + if (typing) + return false; +- ++ void libnx_apply_overclock(void); + /* swkbd only works on "real" titles */ + if ( __nx_applet_type != AppletType_Application + && __nx_applet_type != AppletType_SystemApplication)