More actions
(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= | |image=nimnx.png | ||
|description= | |description=Working Nim app example. | ||
|author=dkgitdev | |author=dkgitdev | ||
|lastupdated=2022/11/ | |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/ | |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= | ||
}} | }} | ||
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 <code>src/NimNx</code>). | |||
*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 <code>build/nimNx/nimNx.nro</code> to <code>/switch/nimNx/</code>. | |||
< | |||
Launch using Switch. | |||
==Screenshots== | ==Screenshots== | ||
https://dlhb.gamebrew.org/switchhomebrews/ | https://dlhb.gamebrew.org/switchhomebrews/nimnx.png | ||
==Changelog== | ==Changelog== | ||
''' | '''v0.1.0''' | ||
* | * This is initial release of the small hello world NX app. | ||
== External links == | == External links == | ||
* | * GitHub - https://github.com/dkgitdev/nimNx | ||
Latest revision as of 05:41, 4 Haziran 2023
nimNX | |
---|---|
General | |
Author | dkgitdev |
Type | Developments |
Version | 0.1.0 |
License | Mixed |
Last Updated | 2022/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
Changelog
v0.1.0
- This is initial release of the small hello world NX app.
External links
- GitHub - https://github.com/dkgitdev/nimNx