mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-22 22:58:12 +03:00
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.
755 B
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
- Copy the resulting
system3.nrofile to a folder inside your Nintendo Switch's SD card (eg./switch/[game name]/) - Copy all the game files, BGM files and configuration.
- Open system3 through the Homebrew Launcher