Files
kichikuou 3e32da1d37 Add SDL3 support alongside SDL2
Add optional SDL3 support while keeping SDL2 as the default. SDL3 builds
must be selected explicitly with the SYSTEM3_SDL_VERSION CMake option.

Centralize most SDL2/SDL3 API differences behind compatibility interfaces.
Audio playback uses a dedicated SDL3 backend based on SDL3 audio streams,
implemented separately in mako_sdl3.cpp.

Android and Nintendo Switch remain on SDL2 for now.
2026-09-16 08:44:23 +09:00

755 B

System3 for Switch

Build

Prerequisites:

  • CMake >=3.20
  • devkitPro environment (how to install)
  • Nintendo Switch development tools package (switch-dev)
  • SDL2 and SDL2_ttf Switch ports (switch-sdl2, switch-sdl2_ttf)
git submodule update --init
sudo (dkp-)pacman -S switch-dev switch-sdl2 switch-sdl2_ttf
mkdir -p out/debug
cd out/debug
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake \
  -DCMAKE_BUILD_TYPE=Debug -DSYSTEM3_SDL_VERSION=2 ../../
make

Use

  1. Copy the resulting system3.nro file to a folder inside your Nintendo Switch's SD card (eg. /switch/[game name]/)
  2. Copy all the game files, BGM files and configuration.
  3. Open system3 through the Homebrew Launcher