Skip to content

kaiHEN 20261127

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:40
· 2 commits to main since this release
dd89aae

Dynamically linked homebrew.

  • nx-hbloader loads programs that are dynamically linked against libounce: it maps the program's shared libraries from its folder and then from sdmc:/kaihen/lib, and every library of sdmc:/kaihen/preload.
  • The zip brings the shared libraries in sdcard/kaihen/lib, from libounce 20261127 (built with GCC 16) and OunceVK 20261123.1: libounce.so.1, libstdc++.so.6, Vulkan (libouncevk.so.1), OpenGL (libouncevk-gl.so.1), and the names that ported code loads (libvulkan.so.1, libEGL.so.1, libGLESv2.so.2, libGL.so.1). Programs built with GCC 16 that use C++20 waiting (atomic wait, semaphores) now load.
  • RO has no fixed number of shared libraries for a program, and unloads all of a program's libraries when it returns, also ones the program loaded itself and left.
  • A program that cannot be loaded returns to the menu with a number for the reason, in place of closing the loader. nx-hbmenu explains the numbers 2346-0200 to 2346-0206 under the number, and the loader writes details, such as a missing library's name, to sdmc:/kaihen/nro-cleanup.txt.
  • The zip has an sdcard/ folder that mirrors the SD card, and RO is in it at sdcard/kaihen/bin/ro/main, beside kaiHEN and nx-hbloader. This needs ns2jb from 27 November 2026 (commit ca1d53c) or later; update ns2jb before using this release.

Restart the console before starting this release if an older kaiHEN has run since the last restart: an older RO cannot unload programs for this nx-hbloader.

Statically linked homebrew runs as before.

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.

If a program does not start, the menu shows a number for the reason:

  • 2346-0200: the program needs shared libraries and this kaiHEN is older than they are. Update kaiHEN.
  • 2346-0201: a shared library that the program needs is not on the SD card. Copy sdcard/ of this zip to the SD card's root.
  • 2346-0202, 2346-0203, 2346-0204: a shared library on the SD card does not fit the program: it is older or newer than the one the program was built with. Copy sdcard/ of this zip again, or update the program.
  • 2346-0205: a library in sdmc:/kaihen/preload could not be loaded. Remove it.

kaiHEN-20261127.zip layout:

  • sdcard/: copy its contents to the SD card's root. The acquisition tool copies this folder for you.
    • hbmenu.nro
    • kaihen/bin/ro/main (RO, which the acquisition tool also reads itself), kaihen/bin/hen/main (kaiHEN) and kaihen/bin/game/main (nx-hbloader)
    • kaihen/lib/: the shared libraries of dynamically linked programs: libounce.so.1, libstdc++.so.6, Vulkan (libouncevk.so.1), OpenGL (libouncevk-gl.so.1), and libvulkan.so.1, libEGL.so.1, libGLESv2.so.2 and libGL.so.1 for programs that load those names. nx-hbloader looks for a program's libraries in the program's folder and then in sdmc:/kaihen/lib.
    • switch/ounceshell.nro: OunceShell
  • bootstrap.bin: the acquisition tool reads it itself; it does not go on the SD card.
  • licenses/: the licenses of everything above

Built with docker build --build-arg RELEASE=1 --output out . at this tag, in ounce-devkit's image with libounce 20261127-1, OunceVK 20261123.1-1 and libkaihen 20261123-1 from the [ounce] repository.

libkaihen-20261127-1-any.pkg.tar.zst: libkaihen (kaihen.h, -lkaihen, -lkaihen_plugin) for devkitPro's pacman, built with packaging/Dockerfile. It is also in the [ounce] repository at https://pkg.ouncebrew.org.

Source

  • kaiHEN: this repository at this tag.
  • nx-hbloader: ouncebrew/ounce-hbloader at e34f4afae44fb308dd781a7bd619c3c0787a7a99.
  • nx-hbmenu: ouncebrew/ounce-hbmenu at cb0696389bb10c668c37eabdfd455dde1d63ddaf.
  • 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.
  • libstdc++.so.6 (GPL-3.0-or-later with the GCC Runtime Library Exception): GCC's C++ library as devkitA64 builds it, linked as a shared library by libounce's package. Its source is devkitPro's buildscripts for the devkitA64 release of the build image.
  • libounce 20261127-1, OunceVK 20261123.1-1 and libkaihen 20261123-1: the packages of ouncebrew/libounce, ouncebrew/ouncevk and this repository's releases of those versions.
  • 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: da1464d1edf2fa1e2722a495367cf448aa6961c8f8d4be68426a6dedfedb3494