🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.4 KiB

  1. # Nintendo 3DS
  2. SDL port for the Nintendo 3DS [Homebrew toolchain](https://devkitpro.org/) contributed by:
  3. - [Pierre Wendling](https://github.com/FtZPetruska)
  4. Credits to:
  5. - The awesome people who ported SDL to other homebrew platforms.
  6. - The Devkitpro team for making all the tools necessary to achieve this.
  7. ## Building
  8. To build for the Nintendo 3DS, make sure you have devkitARM and cmake installed and run:
  9. ```bash
  10. cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/3DS.cmake" -DCMAKE_BUILD_TYPE=Release
  11. cmake --build build
  12. cmake --install build
  13. ```
  14. ## Notes
  15. - Currently only software rendering is supported.
  16. - SDL2main should be used to ensure ROMFS is enabled.
  17. - 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.
  18. - `SDL_GetBasePath` returns the romfs root instead of the executable's directory.
  19. - The Nintendo 3DS uses a cooperative threading model on a single core, meaning a thread will never yield unless done manually through the `SDL_Delay` functions, or blocking waits (`SDL_LockMutex`, `SDL_SemWait`, `SDL_CondWait`, `SDL_WaitThread`). To avoid starving other threads, `SDL_SemTryWait` and `SDL_SemWaitTimeout` will yield if they fail to acquire the semaphore, see https://github.com/libsdl-org/SDL/pull/6776 for more information.