mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-03 12:28:10 +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.
24 lines
755 B
Markdown
24 lines
755 B
Markdown
# System3 for Switch
|
|
|
|
## Build
|
|
Prerequisites:
|
|
- CMake >=3.20
|
|
- devkitPro environment ([how to install](https://devkitpro.org/wiki/devkitPro_pacman))
|
|
- Nintendo Switch development tools package (switch-dev)
|
|
- SDL2 and SDL2_ttf Switch ports (switch-sdl2, switch-sdl2_ttf)
|
|
|
|
```sh
|
|
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
|