A starter template for various Switch homebrew applications. This template is geared specifically towards the Code::Blocks IDE. This template can also be used without Code::Blocks just use the Makefile
and directory structure provided.
This is designed to be a simple and fairly minimal setup required to begin developing homebrew for the Nintendo switch system.
Targets | Action |
---|---|
nro | Builds <project name>.nro . |
nso | Builds <project name>.nso . 1 |
nsp | Builds <project name>.nsp . 1 |
elf | Builds <project name>.elf . |
nxlink | Builds <project name>.nro and runs nxlink to send to hbmenu. 2 |
yuzu | Builds <project name>.nro or <project name>.nso and runs the Yuzu Nintendo Switch Emulator. 3 |
Simply select your build target and click the Gear/Build button and the target will run from the Makefile.
Notes:
- 1 This requires setting up the APP's json file which should be located in RESOURCES/config.json
- 2 This requires setting up your switch's ip address in the
Makefile
- 2 This requires having yuzu findable in your PATH environment variable`
- Follow the steps installing devkitPro
- Simply open
switch-template.cbp
in Code::Blocks - Choose File > Save as user-template and enter a template name. The project setup is now a user template to create new projects.
- When creating a new project select File > New > From template and follow the wizard's instructions.
- Ensure you have the environment variables plugin installed (in linux you can install this by installing the codeblocks-contrib package). Alternatively if you already have set DEVKITPRO/DEVKITARM Environment variables set you can skip this.
- Choose Settings > Environment and scroll down to the Environment Variables section.
- Add
DEVKITPRO
and point it to where devkitpro is installed - Add
DEVKITARM
and point it to where devkitarm is.
- Add
- Choose Settings > Environment and scroll down to the Environment Variables section.
- Make a new Code::Blocks project via a user-template you just created above. Or simply copy this directory.