/tinynx

a pure C89 single-file implementation of the nx format for maplestory

Primary LanguageCThe UnlicenseUnlicense

Build Status

tiny, single-file C89 implementation of the nx file format with no third-party dependencies

nx.c is under 900 lines of code including comments and around 600 lines of pure code. disabling bitmap support with NX_NOBITMAP shaves off an extra ~200 lines.

i recommend compiling with musl libc for even smaller executable and memory footprint.

library

drop nx.c into your project:

cd path/to/my/project
curl https://raw.githubusercontent.com/Francesco149/tinynx/master/nx.c > nx.c

read nx.c for examples and documentation of the api

command line interface

video demonstration

download binaries from the releases section or build with ./build (or .\build.bat on windows)

run ./nx with no parameters to see a list of options available

install the nx executable wherever you prefer (ideally somewhere within your PATH like /usr/bin on linux).

you can symlink nx to names that end with the desired command name to create shorter aliases (like busybox does):

nx cat /path/to/file.nx:/some/node
ln -s nx nxcat
nxcat /path/to/file.nx:/some/node