Skip to content

Template Project for Code::Blocks for developing nintendo switch homebrew

License

Notifications You must be signed in to change notification settings

TricksterGuy/switch-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

switch-template

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.

Usage

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`

Setting up devkitPro

Code::Blocks Setup

  1. Simply open switch-template.cbp in Code::Blocks
  2. Choose File > Save as user-template and enter a template name. The project setup is now a user template to create new projects.
  3. When creating a new project select File > New > From template and follow the wizard's instructions.
  4. 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.
    1. Choose Settings > Environment and scroll down to the Environment Variables section.
      1. Add DEVKITPRO and point it to where devkitpro is installed
      2. Add DEVKITARM and point it to where devkitarm is.

Creating a new project

  1. Make a new Code::Blocks project via a user-template you just created above. Or simply copy this directory.

Releases

No releases published

Packages

No packages published