mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-05 13:28:01 +03:00
- MP3/OGG files are now decoded with dr_mp3 and stb_vorbis via the new MakoMusic backend. - Merge src/win/mako.cpp into src/generic/mako.cpp: Windows now uses the same SDL audio path. - A single SDL2 audio device mixes FM, BGM and PCM in its callback with SDL_MixAudioFormat. - PCM plays through SDL_AudioStream. - dr_mp3 and stb_vorbis are vendored under deps/ and included from mako_music.cpp. Warnings for that translation unit are silenced.
23 lines
727 B
Markdown
23 lines
727 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 ../../
|
|
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
|