Retrieve RetroArch Nintendo Switch patch from GitHub

This commit is contained in:
刘皓 2025-02-24 01:08:00 -05:00
parent 07780d4702
commit 5124baf23e
No known key found for this signature in database
GPG key ID: 7901753DB465B711
2 changed files with 2 additions and 15 deletions

View file

@ -1253,15 +1253,13 @@ jobs:
- name: Build frontend
run: |
cp libretro/retroarch-1.20.0-libnx.patch ~
cd ~
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 ..
curl -Lo retroarch.patch https://github.com/libretro/RetroArch/pull/17620.patch
patch -i retroarch.patch ~/retroarch/menu/menu_driver.c
fi
mv mkxp-z_libretro.a retroarch/libretro_libnx.a
cd retroarch

View file

@ -1,11 +0,0 @@
--- 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)