Skip to content

Commit 30bd30d

Browse files
committed
Mention in libretro/switch-bootstrap/README.md that you need to use nacptool
1 parent 191cdbf commit 30bd30d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/autobuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ jobs:
19621962
git apply ~/switch-bootstrap/switch-bootstrap.patch
19631963
CLICOLOR_FORCE=1 make -f Makefile.libnx LIBRETRO=mkxp-z retroarch_switch.elf
19641964
mv retroarch_switch.elf mkxp-z_libretro_libnx.elf
1965-
elf2nro mkxp-z_libretro_libnx.elf mkxp-z_libretro_libnx.nro --romfsdir=~/switch-bootstrap/romfs # check that the .nro can be built but don't upload it
1965+
nacptool --create 'Hello, World!' mkxp-z 1.0.0 control.nacp && elf2nro mkxp-z_libretro_libnx.elf mkxp-z_libretro_libnx.nro --romfsdir=~/switch-bootstrap/romfs --nacp=control.nacp # check that the .nro can be built but don't upload it
19661966
mv mkxp-z_libretro_libnx.elf ~/dist/mkxp-z_libretro_libnx.elf
19671967
else
19681968
CLICOLOR_FORCE=1 make -f Makefile.libnx LIBRETRO=mkxp-z retroarch_switch.nro

libretro/switch-bootstrap/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ zip -r0 ../Game.mkxpz *
1010

1111
Replace the example Game.mkxpz already present in the romfs directory with your version of Game.mkxpz.
1212

13-
You may wish to change the RetroArch configuration in the romfs/retroarch directory. For example, you can change the RetroArch configuration in romfs/retroarch/retroarch.cfg, the core options in romfs/retroarch/config/mkxp-z/mkxp-z.opt or add RTPs your game needs to romfs/retroarch/cores/system/mkxp-z/RTP (consult the [core documentation](https://docs.libretro.com/library/mkxp-z/) for instructions on how to add RTPs).
13+
You may wish to modify the romfs/retroarch directory. For example, you can change the RetroArch configuration in romfs/retroarch/retroarch.cfg, the core options in romfs/retroarch/config/mkxp-z/mkxp-z.opt or add RTPs your game needs to romfs/retroarch/cores/system/mkxp-z/RTP (consult the [core documentation](https://docs.libretro.com/library/mkxp-z/) for instructions on how to add RTPs).
1414

15-
To complete the build, run this command, using `elf2nro` from [switch-tools](https://github.com/switchbrew/switch-tools):
15+
To complete the build, run this command, using `nacptool` and `elf2nro` from [switch-tools](https://github.com/switchbrew/switch-tools):
1616

1717
```bash
18-
elf2nro <path to the .elf file from the mkxp-z libretro build> <path where the .nro file should be output to> --romfsdir=<path to the romfs directory>
18+
nacptool --create <game name> <game author> <game version> control.nacp
19+
elf2nro <path to the .elf file from the mkxp-z libretro build> <path where the .nro file should be output to> --romfsdir=<path to the romfs directory> --nacp=control.nacp
1920
```
2021

2122
If you experience any issues running this .nro file, you may wish to try again with the included example Game.mkxpz rather than your own version of Game.mkxpz to see whether the problem is in the mkxp-z build or due to your Game.mkxpz being incorrectly formatted.

0 commit comments

Comments
 (0)