Fix implicit declaration in RetroArch Nintendo Switch build

This commit is contained in:
刘皓 2025-02-12 11:12:42 -05:00
parent 7c36b76a63
commit d89c7894da
No known key found for this signature in database
GPG key ID: 7901753DB465B711
2 changed files with 20 additions and 1 deletions

View file

@ -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

View file

@ -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)