Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

NimNX Switch

From GameBrew
nimNX
Nimnx.png
General
Authordkgitdev
TypeDevelopments
Version0.1.0
LicenseMixed
Last Updated2022/11/29
Links
Download
Website
Source

Basic nim template for skipping all the "how-tos" straight to a working example. This project can also be used to start new NX projects.

User guide

This project consists of two parts:

  • C FFI to get all the libNX parts available for nim (under src/NimNx).
  • The actual nim code that uses this stuff.

This project was made using following technique:

OPEN C PROJECT
FIND DEFINITION OF C VAR / FUNC / STRUCT
IMPORT IT CORRECTLY IN NIM
USE IN A SAME MANNER

So it is highly recommend to look for same identifiers in original libNx C code and see how it got translated to nim.

How to use

Install nim and devkitpro (and export env vars too).

Then, build your *.nro:

nimble install
switch_build src/nimNx.nim

Copy build/nimNx/nimNx.nro to /switch/nimNx/.

Launch using Switch.

Screenshots

nimnx.png

Changelog

v0.1.0

  • This is initial release of the small hello world NX app.

External links

Advertising: