github ouncebrew/kaihen 20261117b
kaiHEN 20261117b

24 minutes ago

Homebrew can open a game's code file system with libounce's standard fsldr API: fsldrInitialize() and fsldrOpenCodeFileSystem(), as on Switch 1. hbloader gives each program built with libounce for Switch 2 a clone of HEN's fsp-ldr root as its fsp-ldr override (HEN homebrew command 23, protocol version 7). Programs need ounce-devkit 20261117 for this; older libounce sends SetCurrentProcess on the override. Programs built with upstream libnx get no override.

Warning: this is still a work in progress, and might have bugs. kaiHEN allows full access to the system, including the system NAND. A malicious homebrew might write to your Switch 2 and brick it forever.

Known issue: files whose names have non-ASCII characters (accents, Japanese, emoji) do not show in folder listings, in OunceShell or over FTP. They can still be opened, downloaded and deleted by name.

kaiHEN.zip layout:

  • bootstrap.bin, hbmenu.nro
  • ro/main, hen/main
  • game/main: nx-hbloader
  • programs/ounceshell.nro: OunceShell
  • licenses/: the licenses of everything above

Built with docker build --build-arg RELEASE=1 --output out . at this tag, with ounce-devkit 20261117.

Source

  • kaiHEN: this repository at this tag.
  • nx-hbloader: ouncebrew/ounce-hbloader at 2d38bcbe944b317e92acdc32ccf7b53b65093bf6.
  • nx-hbmenu: ouncebrew/ounce-hbmenu at 43845d247487dedaa902f53f7d24ed61a116e982.
  • OunceShell (GPL-3.0-or-later): kurumuz/ounceshell at b2655caf6f8e48084bde84f18c28f834358f8286, built with its switch2/Makefile. Its FTP server is mtheall/ftpd v2.3.1 (public domain), modified.
  • libounce, OunceVK and libkaihen: ouncebrew/ounce-devkit 20261117, which pins their commits.
  • The devkitPro portlibs linked into hbmenu and OunceShell, from devkitPro's packages: libconfig 1.7.2, freetype 2.13.3, harfbuzz 10.0.1, libjpeg-turbo 2.1.2, libpng 1.6.48, bzip2 1.0.8, zlib 1.3.1, physfs 3.2.0, SDL2 2.28.5, SDL2_ttf 2.22.0, SDL2_image 2.0.4, libwebp 1.0.2, libarchive 3.7.2, expat 2.2.5, lz4 1.9.3, zstd 1.5.7, liblzma 5.8.2, libvorbis 1.3.7, libogg 1.3.4, Oniguruma 6.9.2.

SHA-256: 70c7d63f247f8873e746b2083ff0808c187403aff51ac1b94a4d41182f860d69

Don't miss a new kaihen release

NewReleases is sending notifications on new releases.