From b53d6e1c4fc0fe3b84727820203c71e1d6ce23d0 Mon Sep 17 00:00:00 2001 From: DaBanana64 <82652849+DaBanana64@users.noreply.github.com> Date: Thu, 16 Mar 2023 12:16:56 +0330 Subject: [PATCH] Building instructions Round 2! (#24) ### Description This PR adds building section for Switch! ### Will this Pull Request break anything? Nah. ### Suggested Testing Steps Just see if I missed any steps or I mentioned them incorrectly. --- BUILDING.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index ec39ecd..f2343db 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -64,3 +64,27 @@ make -j$(nproc) # run on all core make clean all # clear gen+obj and rebuild CC=clang make # specify compiler ``` + +# Nintendo Switch + +Dependencies and requirements: + + * The `switch-sdl2` library + * MSYS2 + * [DevKitPro](https://devkitpro.org/wiki/Getting_Started) + * [Atmosphere](https://github.com/Atmosphere-NX/Atmosphere) + + Note: *You must have MINGW64 open and affirm you're in the `sm` root folder.* + +1. Make sure you've installed DevKitPro and Atmosphere. +2. Type `(dkp-)pacman -S git switch-dev switch-sdl2 switch-tools` to install the Switch SDL2 deps. +3. Now go to the `switch` folder inside MSYS2 `cd platform/switch/` +4. Type `make` to build the game. +5. Copy the `.ini`, `nro` and the `smc` file and put them in your Switch. + +**OPTIONAL STEPS** + +```sh +make -j$(nproc) # To build using all cores +nxlink -s zelda3.nro # To test the build directly onto the Switch +```