doompanning/docs/README-n3ds.md
oxmox 8d141da463 Squashed 'external/SDL/' content from commit adf31f6ec
git-subtree-dir: external/SDL
git-subtree-split: adf31f6ec0be0f9ba562889398f71172c7941023
2023-02-22 19:20:36 +01:00

982 B

Nintendo 3DS

SDL port for the Nintendo 3DS Homebrew toolchain contributed by:

Credits to:

  • The awesome people who ported SDL to other homebrew platforms.
  • The Devkitpro team for making all the tools necessary to achieve this.

Building

To build for the Nintendo 3DS, make sure you have devkitARM and cmake installed and run:

cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/3DS.cmake" -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build

Notes

  • Currently only software rendering is supported.
  • SDL2main should be used to ensure ROMFS is enabled.
  • By default, the extra L2 cache and higher clock speeds of the New 2/3DS lineup are enabled. If you wish to turn it off, use osSetSpeedupEnable(false) in your main function.
  • SDL_GetBasePath returns the romfs root instead of the executable's directory.