nim-libnx/README.md
2018-06-20 07:31:59 +09:00

877 B

nim-libnx

Libnx ported to the Nim programming language. You will need a nim compiler with Nintendo switch support which can be found here until the PR is accepted.

You also must have DevkitPro and switch (libnx) libraries for Mac and Linux or Windows installed. The DEVKITPRO environment variable must also exist and point to a directory with the following structure:

  • DEVKITPRO/portlibs/switch/lib
  • DEVKITPRO/libnx/lib
  • DEVKITPRO/portlibs/switch/include
  • DEVKITPRO/libnx/include

##Install

Simply run

nimble install

and then cd into the examples folder and compile an example:

nim build <example_name>

PRs are welcome for porting other examples or any other changes!