This is a base repository to build server plugins on the Nintendo Switch versions of Portal (v1.0.3) and Portal 2 (v1.0.3).
- Have devkitPro installed for the current platform.
- Run the
MakeFileby doingmake. - The plugin
.nrowill appear at the root.
- Portal and Portal 2 on Switch check a whitelist of file hashes in
romfs/.nrr/launcher_main.nrr. - Generate the
.nroplugin binary and use nxtool to get its hash. - At offset
0x344inlauncher_main.nrr, the number of whitelisted binaries is stored. Increment it by one. - There is also a
00byte repitition that lasts to the end of the file. Overwrite it with the plugin’s hash to whitelist it. - If using NXSideLoader, place the modified
launcher_main.nrrin the correct location and install the plugin inromfs/nro/(plugin_name).nro. Otherwise, repackagegame.zipwith the plugin and modifiedlauncher_main.nrr. - Load the plugin with the
plugin_loadconsole command.
- This will generate a
launcher_main.nrrfile for the newly compiled plugin.
- Have nxtool compiled and ready to use.
- Place the target game's original
romfs/.nrr/launcher_main.nrrfile inswitch/(game_name)/launcher_main.nrr.- A modified version can be used to support multiple plugins.
- Configure the parameters in
build.sh. - Run
build.sh.