Skip to content

Releases

kaiHEN 20261202.1

Choose a tag to compare

@SeanHeuc SeanHeuc released this 02 Dec 15:11

kaiHEN 20261202.1 — upstream 20261201 + PR ouncebrew#49 + Switch 1 policy capture

This is the SeanHeuc/kaihen fork, based
on official kaiHEN 20261201 plus upstream PR
#49 (HEN protocol 14). The RO,
bootstrap, hbmenu, hbloader, attach module and shared libraries are the
official 20261201 builds.

What changed from 20261201.2

  • Upstream PR ouncebrew#49: HEN protocol 14, command 27
    GetFilesystemProcess, and henGetFilesystemProcess() in libkaihen. Every
    HEN client gets a copy of FS's process handle for kaihen/patch.h.
  • Switch 1 policy capture: the first stock R launch of a Switch 1 game
    mounts its code with content attributes 0. capturePolicy() now tries both
    1 and 0, so the signed policy is captured and later R launches can use the
    rtld path. This is the safe half of
    PR #1 by
    @superzeldalink.
  • The waitForInput() gate-parking hunk from PR #1 was not included: with
    a fresh policy it skips native first-launch policy capture. The attr
    fallback alone is enough.

Still from the fork

  • Switch 1 / Switch 2 Edition R launch fixes
    (ouncebrew/kaihen#47): a
    Switch 2 Edition running its Switch 1 program is served through the rtld
    path, and a native Switch 2 launch accepts a reused CodeFS object address.
  • SD log: [log] sd = 1 in sdmc:/kaihen/config/kaihen.ini appends HEN's
    log to sdmc:/kaihen/hen-log.txt every two seconds. Off by default.

Testing

Fresh policy tested on Switch 2 23.0.1 with:

  • a plain 64-bit Switch 1 game first: first R stays stock, captures the
    policy; second R opens hbmenu;
  • a native Switch 2 game first: first R stays stock, captures the policy;
    second R opens hbmenu;
  • a Switch 2 Edition first: first R stays stock, captures the policy; second R
    opens hbmenu.

Install

  1. Copy the contents of sdcard/ to the SD card root. The copy includes
    kaihen/bootstrap.bin, which Civ-Autoloader reads.
  2. The bootstrap.bin at the zip root is the same file, for acquisition tools
    that read it themselves.
  3. Restart the console.

Warning

Experimental. Use it at your own risk. LayeredFS can swap the saves of an
installed title: back up your saves first. Use only dumps of games you own.

Thanks to ouncebrew for kaiHEN, to the upstream contributors, and to
@superzeldalink for the Switch 1 policy-capture diagnosis.

kaiHEN 20261201.2

Choose a tag to compare

@SeanHeuc SeanHeuc released this 01 Dec 14:21

kaiHEN 20261201.2 — official 20261201 + Switch 1/S2E fix + SD log

This is the SeanHeuc/kaihen fork. It is
based on official kaiHEN 20261201 and carries only the two changes below.
The RO, bootstrap, hbmenu, hbloader, attach module and shared libraries are
the official 20261201 builds.

Differences from official 20261201

  • Switch 1 / Switch 2 Edition R-launch fix (hen/source/game_arm.cpp,
    ouncebrew/kaihen#47):
    • A 01 application is always served through the rtld path, even when its
      code mounts with content attributes 1 (a Switch 2 Edition running its
      Switch 1 program). Official 20261201 takes that mount for a native game,
      parks Loader for the native CodeFS exchange, and the launch hangs.
    • A native Switch 2 R launch no longer fails when Loader reuses the first
      CodeFS object address for the second mount. first_closed_ already proves
      the first object is gone, so a reused object address is not a duplicate
      mount.
  • SD log ([log] sd in sdmc:/kaihen/config/kaihen.ini):
    [log]
    sd = 1
    HEN then appends its diagnostics to sdmc:/kaihen/hen-log.txt every two
    seconds. The log is off by default. There is no hen-options.txt.
  • README: the fork README describes the two changes.

Everything else is official 20261201: LayeredFS (romfs.bin in parts,
romfs.replace, exefs/main.npdm, subsdk0-9), kaiHEN settings, RO
extensions, hbmenu netloader, and the official shared libraries.

Install

  1. Copy the contents of sdcard/ to the SD card root. The copy includes
    kaihen/bootstrap.bin, which Civ-Autoloader reads.
  2. The bootstrap.bin at the zip root is the same file, for acquisition tools
    that read it themselves.
  3. Restart the console.

Only the HEN binary changes from the official release. The zip also adds a
copy of the official bootstrap.bin under sdcard/kaihen/ for Civ-Autoloader
and sets system.json's version to 20261201.2. The background ftpd plugin is
not included. OunceShell is the app at switch/ounceshell/ounceshell.nro.

Warning

Experimental. Use it at your own risk. LayeredFS can swap the saves of an
installed title: back up your saves first. Use only dumps of games you own.

Thanks to ouncebrew for kaiHEN and to the upstream contributors.

kaiHEN 20261201.1 — whole-ROMFS HEN

Choose a tag to compare

@SeanHeuc SeanHeuc released this 01 Dec 06:39

kaiHEN 20261201.1 — whole-ROMFS HEN for nx2-layered

Based on kaiHEN 20261130.1. Only HEN is rebuilt; the RO, bootstrap, hbmenu, hbloader and shared libraries are unchanged from 20261130.1.

This release integrates Olmectron/kaihen branch nx2-whole-romfs-autoloader-1.4: whole-RomFS views for tools that run a game from SD card files, such as nx2-flow and nx2-layered.

What's new

  • Whole RomFS: with an empty romfs.whole in sdmc:/kaihen/contents/<folder-id>/, romfs.bin becomes the game's whole RomFS in place of the installed one, whatever its file count. A folder without romfs.whole is unchanged.
  • RomFS layer: with romfs.whole, an optional romfs.layer.bin is laid over romfs.bin, such as an update's RomFS kept apart from the base. Loose romfs/ files still lie over both images.
  • System resource size: an empty exefs/main.npdm.srs.<8 hex digits> serves the title's own main.npdm with the system resource size (the word at 0x14 of its META header) set to that hexadecimal value, in bytes. Nothing else of the NPDM changes.
  • HEN-only: the RO and bootstrap are not changed. Use them from 20261130.1.

The fork keeps HEN's segments where its base has them (text from 0, read-only data from 0x3b000, data from 0x4d000); the build stops if they move.

Install

  1. Copy the contents of sdcard/ to the SD card root, replacing /kaihen/bin/hen/main and /kaihen/system.json.
  2. Keep the 20261130.1 RO and bootstrap; this HEN is built for them.
  3. Restart the console.

Only HEN changes. The background ftpd plugin is not included. OunceShell is the app at switch/ounceshell/ounceshell.nro.

Warning

Experimental. Use it at your own risk. Starting a game through LayeredFS swaps the saves of an installed title: back up your saves first. Use only dumps of games you own.

Thanks to Olmectron for the whole-RomFS work and the nx2-layered/nx2-flow integration, and to ouncebrew for kaiHEN.

kaiHEN 20261130.1 — with S1, S2-Edition support.

Choose a tag to compare

@SeanHeuc SeanHeuc released this 30 Nov 15:26

kaiHEN 20261130.1 — with S1, S2-Edition support.

Based on the official kaiHEN 20261128.1 release. HEN and RO are rebuilt; the bootstrap, hbmenu, hbloader and shared libraries are unchanged from 20261128.1.

this enhancement come from ouncebrew#36 by kurumuz I fixed some issues and tested.

  • Switch 1 titles: holding R on a 64-bit Switch 1 game now opens hbmenu through nx-hbloader as the game's rtld. No donor package is built and no game code is copied to the SD card.
  • Switch 2 Edition: (switch 1 game with switch2 upgrade bundled) a Switch 2 Edition running as a Switch 1 game uses the same rtld path. The 01 ID is classified as a Switch 1 mount whether its content attributes are 0 or 1.
  • Native Switch 2: unchanged; the native package path is still used.
  • 32-bit Switch 1: can't arm hbmenu.
  • CodeFS address reuse: once the first CodeFS object is closed, Loader may reuse its address for the second object; that is accepted now instead of being mistaken for a duplicate mount.
  • RO: the ns2jb proof commands and roControlGameStatus are removed. The normal RO process-memory, patch, map and permission API remains.
  • LayeredFS: the rtld path needs LayeredFS enabled; the release keeps it on by default.

Assets: kaiHEN-20261130.1-switch1-titles.zip is this fork's patched build; kaiHEN-20261128.1.zip is the official upstream base.

kaiHEN 20261128.1 — Switch 1 title support

Choose a tag to compare

@SeanHeuc SeanHeuc released this 29 Nov 04:45

kaiHEN 20261128.1 — Switch 1 title support

Based on the official kaiHEN 20261128.1 release. The HEN, RO and bootstrap are rebuilt with the Switch 1 title donor-build patch and the donor hash stamp; hbmenu, nx-hbloader, kaihen/lib and OunceShell are the official 20261128.1 binaries.

  • Hold R while starting a Switch 1 game to open hbmenu in that game's process.
  • The first launch builds /kaihen/bin/s1/default.nsp (~15 seconds); later launches reuse it.
  • HEN records the hbloader hash in /kaihen/bin/s1/default.stamp and clears the donors when game/main changes.
  • OunceShell is the app at switch/ounceshell/ounceshell.nro.
  • The official upstream release notes describe the 20261128.1 changes: LayeredFS and the Switch 1 R-launch fix.

Assets: kaiHEN-20261128.1-switch1-titles.zip is this fork's patched build; kaiHEN-20261128.1.zip is the upstream official build.

kaiHEN 20261127.1 — Switch 1 title support

Choose a tag to compare

@github-actions github-actions released this 28 Nov 14:13

kaiHEN 20261127.1 — Switch 1 title support

Based on the official kaiHEN 20261127.1 release. The HEN, RO and bootstrap are rebuilt with the Switch 1 title donor-build patch; hbmenu, nx-hbloader, kaihen/lib and OunceShell are the official 20261127.1 binaries.

  • Hold R while starting a Switch 1 game to open hbmenu in that game's process.
  • The first launch builds /kaihen/bin/s1/default.nsp (~15 seconds); later launches reuse it.
  • OunceShell is the app at switch/ounceshell/ounceshell.nro.
  • HEN records the hbloader hash in /kaihen/bin/s1/default.stamp and clears Switch 1 donors when game/main changes.
  • The official upstream release notes describe the 20261127.1 changes.

Assets: kaiHEN-20261127.1-switch1-titles.zip is this fork's patched build; kaiHEN-20261127.1.zip is the upstream official build.