NimNX Switch: Difference between revisions

From GameBrew
(Created page with "{{Infobox Switch Homebrews |title=nimNX |image=nimnxswitch.png |description=working Nim app example. |author=dkgitdev |lastupdated=2022/11/27 |type=Developments |version=0.1.0 |license=Mixed |download=https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch.7z |website= |source=https://github.com/dkgitdev/nimNx |donation= }} {{#seo: |title=Switch Homebrew PC Tools (Developments) - GameBrew |title_mode=append |image=nimnxswitch.png |image_alt=nimNX }} {{cleanup|article|Needs...")
 
No edit summary
 
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=nimNX
|title=nimNX
|image=nimnxswitch.png
|image=nimnx.png
|description=working Nim app example.
|description=Working Nim app example.
|author=dkgitdev
|author=dkgitdev
|lastupdated=2022/11/27
|lastupdated=2022/11/29
|type=Developments
|type=Developments
|version=0.1.0
|version=0.1.0
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/nimnx.7z
|website=
|website=https://github.com/dkgitdev/nimNx
|source=https://github.com/dkgitdev/nimNx
|source=https://github.com/dkgitdev/nimNx
|donation=
|donation=
}}
}}
{{#seo:
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.
|title=Switch Homebrew PC Tools (Developments) - GameBrew
 
|title_mode=append
==User guide==
|image=nimnxswitch.png
This project consists of two parts:
|image_alt=nimNX
*C FFI to get all the libNX parts available for nim (under <code>src/NimNx</code>).
}}
*The actual nim code that uses this stuff.
{{cleanup|article|Needs cleanup}}
 
working Nim app example.
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


==Media==
Copy <code>build/nimNx/nimNx.nro</code> to <code>/switch/nimNx/</code>.
<youtube></youtube>


Launch using Switch.


==Screenshots==
==Screenshots==
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-01.png
https://dlhb.gamebrew.org/switchhomebrews/nimnx.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-02.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-04.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-05.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-06.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-07.png
https://dlhb.gamebrew.org/switchhomebrews/nimnxswitch-08.png


==Changelog==
==Changelog==
'''v.1.0'''
'''v0.1.0'''
* First Release.
* This is initial release of the small hello world NX app.


== External links ==
== External links ==
* Gbatemp -
* GitHub - https://github.com/dkgitdev/nimNx
* Github - https://github.com/dkgitdev/nimNx
* Reddit -

Latest revision as of 05:41, 4 June 2023

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: