The entry was hidden on Erista whenever the SD card was not mounted while
the menu was built. When shown, it tried atmosphere/reboot_payload.bin
first; on OmniNX that is fusee, which is rejected as not hekate, and the
rejection unmounted the card, so bootloader/update.bin was never found.
Always offer the entry, try the hekate files first, mount the card before
each attempt and point to RCM if hekate cannot be loaded.
The sysmodule selector covers them: all three ship a toolbox.json and the
list shows each sysmodule as name and title ID, so the error code can be
matched directly. The selector now sits under the Atmosphere error codes
next to the theme fix.
Lists every sd:/atmosphere/contents/<TID>/ that ships a toolbox.json and
removes the chosen sysmodule, so any installed sysmodule can be
uninstalled without hardcoded title IDs.
The payload is now built as RepairNX.bin (CI artifacts and release asset
too), the header and credits show RepairNX, and screenshots go to
sd:/RepairNX/screenshots.
- Add warmboot_extractor (Sthetix-derived) for PKG1 extraction and sd save
- m_entry_fixMarikoWarmbootSleep: generate wb_xx.bin, INI warmboot= for
[CFW-EmuMMC] or section chooser; blank-line handling for Hekate parsing
- Menu: Mariko Sleep Fix under Bequemlichkeit; theme fix under MainAMS
- README: Funktionen + Danksagungen for warmboot/Fuse-Mismatch workaround
- Fix listdir memory corruption in Mac special-folder cleanup (apl.c)
Made-with: Cursor
Relocated "Delete Themes" entry from the boot problem section into
the Atmosphere error codes section as "Fix 0100000000001000
(Installiertes Theme)" to better reflect that it fixes an AMS
title ID conflict.
Co-authored-by: Cursor <cursoragent@cursor.com>
The listdir function had three memory corruption bugs causing a
data abort (Err:19) on the Switch:
1. Heap buffer overflow: CpyStr("sd:/") allocated only 5 bytes but
listdir appends full subdirectory paths in-place via memcpy.
Fixed by using a 1024-byte stack buffer instead.
2. Use-after-free: _DeleteFileSimple(path) freed the shared traversal
buffer, but the loop continued using it. Fixed by inlining f_unlink
without freeing.
3. Recursive free + missing else: free(path) at the end of listdir
freed the buffer shared across all recursive frames, and a missing
else caused recursion into directories that were just deleted.
Removed the free and added an else guard.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Add a function to reboot to payload
- Add an "Empty array" variable type that is created when you try to assign []. This will get filled with a valid entry upon first addition
- Adds operator string array plus string