Skip to content
Libnx ported to the Nim programming language
Nim
Branch: master
Clone or download

Latest commit

Latest commit 01dda9d Sep 7, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src/libnx
.gitignore
LICENSE
README.md
libnx.nimble
libnxGen.cfg

README.md

nim-libnx

Libnx ported to the Nim programming language. You will need a Nim compiler with Nintendo switch support which can be found in the latest devel branch of the Nim compiler.

You also must have DevkitPro and switch (libnx) libraries for Mac and Linux or Windows installed.

From dkp-pacman, the switch libraries can be installed with:

dkp-pacman -Syu
dkp-pacman -S switch-dev
## When it asks for installation options, choose the default which will install everything

The DEVKITPRO environment variable must also exist and point to a directory with the following structure:

  • DEVKITPRO/libnx/lib
  • DEVKITPRO/libnx/include

OR you must specify a valid libnx path and/or devkitpro path to the switch_build utility:

switch_build --libnxPath:"C:\devkitPro\libnx" --author:"Joey" --version:"1.0.0" .\examples\accounts\account_ex.nim
# OR
switch_build --devkitProPath:"C:\devkitPro" --author:"Joey" --version:"1.0.0" .\examples\accounts\account_ex.nim

Install

Simply run

# Because of a bug in nimble right now, you must install this first!
nimble install nimgen@#head
nimble install

To compile examples:

nimble buildExamples

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

You can’t perform that action at this time.