ref: 73b084bad38a2c019c4d1b667708099cd498cf1e
parent: 1c4e0e1b7fea9dac2dc294926f0d12267d015faa
author: KiritoDev <36680385+KiritoDv@users.noreply.github.com>
date: Thu Oct 6 05:48:42 EDT 2022
Added switch build info into readme (#134)
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# Zelda3
-A reimplementation of Zelda 3.
+A reimplementation of Zelda 3.
Our discord server is: https://discord.gg/AJJbJAzNNJ
@@ -47,7 +47,7 @@
- Ubuntu: `apt install libsdl2-dev`
- macOS: `brew install sdl2`
- a `tables/zelda3.sfc` US ROM file (for asset extraction step only)
- - SHA256 : `66871d66be19ad2c34c927d6b14cd8eb6fc3181965b6e517cb361f7316009cfb`.
+ - SHA256 : `66871d66be19ad2c34c927d6b14cd8eb6fc3181965b6e517cb361f7316009cfb`.
- The `pillow` and `pyyaml` python dependencies used by the assets extractor.
- `python -m pip install -r requirements.txt`
@@ -56,7 +56,7 @@
Look at the wiki at https://github.com/snesrev/zelda3/wiki for more help.
### Windows
-First extract and compile resources.
+First extract and compile resources.
`cd tables`
@@ -105,6 +105,18 @@
```
</details>
+### Nintendo switch
+
+You need [DevKitPro](https://devkitpro.org/wiki/Getting_Started) and [Atmosphere](https://github.com/Atmosphere-NX/Atmosphere) installed.
+
+```sh
+(dkp-)pacman -S git switch-dev switch-sdl2 switch-tools
+cd platform/switch
+make # Add -j$(nproc) to build using all cores ( Optional )
+# You can test the build directly onto the switch ( Optional )
+nxlink -s zelda3.nro
+```
+
In case you're planning to move the executable to a different location, please include the file `tables/zelda3_assets.dat`.
## Usage and controls
@@ -158,4 +170,4 @@
## License
-This project is licensed under the MIT license. See 'LICENSE.txt' for details.
+This project is licensed under the MIT license. See 'LICENSE.txt' for details.
\ No newline at end of file
--- a/platform/switch/Makefile
+++ b/platform/switch/Makefile
@@ -38,7 +38,7 @@
# NACP building is skipped as well.
#---------------------------------------------------------------------------------
SRC_DIR := ../..
-TARGET := $(notdir $(CURDIR))
+TARGET := zelda3
BUILD := bin
SOURCES := $(SRC_DIR) $(SRC_DIR)/snes
INCLUDES := include