mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-25 08:13:44 +02:00
Fix implicit declaration in RetroArch Nintendo Switch build
This commit is contained in:
parent
7c36b76a63
commit
d89c7894da
2 changed files with 20 additions and 1 deletions
10
.github/workflows/autobuild.yml
vendored
10
.github/workflows/autobuild.yml
vendored
|
@ -1100,8 +1100,16 @@ jobs:
|
||||||
|
|
||||||
- name: Build RetroArch
|
- name: Build RetroArch
|
||||||
run: |
|
run: |
|
||||||
|
cp retro/retroarch-1.20.0-libnx.patch ~
|
||||||
cd ~
|
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
|
mv mkxp-z_libretro.a retroarch/libretro_libnx.a
|
||||||
cd retroarch
|
cd retroarch
|
||||||
CLICOLOR_FORCE=1 make -f Makefile.libnx LIBRETRO=mkxp-z
|
CLICOLOR_FORCE=1 make -f Makefile.libnx LIBRETRO=mkxp-z
|
||||||
|
|
11
retro/retroarch-1.20.0-libnx.patch
Normal file
11
retro/retroarch-1.20.0-libnx.patch
Normal 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)
|
Loading…
Add table
Reference in a new issue