Repository navigation
feat(profile): add The Patrick Star Game (01008AF01AD22000) and HLE account fix - #2069
Open
idanfilmedit-art wants to merge 1 commit into
Open
idanfilmedit-art wants to merge 1 commit into
idanfilmedit-art wants to merge 1 commit into
Conversation
idanfilmedit-art
marked this pull request as draft
November 10, 2026 16:12
idanfilmedit-art
marked this pull request as ready for review
November 10, 2026 16:12
idanfilmedit-art
marked this pull request as draft
November 10, 2026 16:31
idanfilmedit-art
marked this pull request as ready for review
November 10, 2026 16:32
idanfilmedit-art
marked this pull request as draft
November 10, 2026 16:33
idanfilmedit-art
marked this pull request as ready for review
November 10, 2026 16:39
idanfilmedit-art
force-pushed
the
main
branch
from
November 16, 2026 17:33
941f07c to
223a3e8
Compare
idanfilmedit-art
force-pushed
the
main
branch
2 times, most recently
from
November 17, 2026 12:42
61ba09d to
637c5a2
Compare
Unity engine profile with main, subsdk0, sdk modules and Data/resources.assets RomFS marker for title 01008AF01AD22000. Verified playable in-game on Apple Silicon.
idanfilmedit-art
force-pushed
the
main
branch
from
November 17, 2026 13:49
637c5a2 to
c88bd16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bring up The Patrick Star Game (
01008AF01AD22000)Summary
Adds a game profile (
dm/games/01008AF01AD22000/game.tsv) and annn::account::GetUserIdHLE fix (dm/host/hle_account.c) to bring The Patrick Star Game (01008AF01AD22000, v1.0.1 / v1, Unity 2022.3 IL2CPP + FMOD, SDK 16.2.4) to an active, rendering in-game state on macOS Apple Silicon.Screenshot (In-Game / Verification)
Root Causes & Changes
Host HLE (
dm/host/hle_account.c—nn::account::GetUserId):SIGABRT(exit code 134) during early initialization before creating an NVN window or presenting any frames:[RED] FATAL account::GetUserId: the handle was not issued by the host (0)sub_3f1cbb0(main+0x3f1ccc0), the title callsnn::account::Initialize(), zero-initializes a 16-bytenn::account::Uidand a 24-bytenn::account::UserHandleon the stack (stp xzr, xzr, [sp, #0x38]; str xzr, [sp, #0x48]), and invokesnn::account::GetUserId(&uid, &userHandle)directly without callingTryOpenPreselectedUserorOpenPreselectedUserfirst.h->v[2] != HANDLE_MAGIC, return the host's fixed local user UID (*out = k_uid; return RES_OK;) instead of aborting viadie(). Valid handles issued byTryOpenPreselectedUser/OpenPreselectedUser/OpenUsercontinue to returnh->v[0..1]unchanged.Game Profile (
dm/games/01008AF01AD22000/game.tsv—stdalloc_cap):SIGSEGVatmain+0x10fe9a0(str x19, [x22]withx22 = 0x0) at frame 15 during initial Unity scene and shader warmup.16 MBof system resource (sys_resource = 0x1000000), enabling virtual address memory. Unity'snninitStartup(main+0x111fc00..0x111fc60) queriesTotalMemorySize - UsedMemorySize(3.2 GB - 64 MB = 3.14 GB) and passes the entire size tonn::mem::StandardAllocator::Initialize(nullptr, size). BecauseStandardAllocatorreserves3.14 GBof virtual address space inside the4.375 GBalias region (mem_alias = 0x118000000), subsequentnn::os::AllocateAddressRegioncalls by Unity's internal allocators exhaust the remaining1.18 GBalias space at+4.26 GB / 4.38 GBand returnNULL.stdalloc_cap 0x3c000000(960 MB, matching the 1 GB-pool Unity 2022.3 profiles) while preserving the3.2 GBapplication pool (app_pool 0xcd500000).StandardAllocatorreserves0.94 GBof virtual address space ([+0.06 GB, +1.00 GB)), leaving3.38 GBin the alias region for Unity's own address regions.ue_texture_pool/ue_fps_cvaromitted) and setromfs_markertoData/resources.assets.Verification on macOS ARM64
MacBookAir10,1), macOS 26.1 (25B78), Metal 4 (MTL4Compiler+applegpu_g13g.mtl4apipeline archive, 581 archived PSOs).nn::account::GetUserIdsucceeds with local user UID;save:/mounts and commits cleanly.1920x1080and960x540H.264 / AAC viasubsdk0NintendoSDK_movie) decode through VideoToolbox and play smoothly.present interval 2).+2.75 GB / 4.38 GB(0.98 GBmapped,1.59 GBresident,376 MBGPU memory) with zero crashes or allocation failures.Impact Report
python3 scripts/regress.py impact:dm/host/hle_account.c(h_acc_GetUserId/_ZN2nn7account9GetUserIdEPNS0_3UidERKNS0_10UserHandleE) anddm/games/01008AF01AD22000/game.tsv(profile) are touched._ZN2nn7account9GetUserIdEPNS0_3UidERKNS0_10UserHandleE(01007EF00011E000Breath of the Wild,0100A3D008C5C000Pokémon Scarlet,0100F2C0115B6000Tears of the Kingdom).UserHandle(h->v[2] == HANDLE_MAGIC), behavior is bit-for-bit identical.01007EF00011E000hle: _ZN2nn7account9GetUserIdEPNS0_3UidERKNS0_10UserHandleE ×200100A3D008C5C000hle: _ZN2nn7account9GetUserIdEPNS0_3UidERKNS0_10UserHandleE ×20100F2C0115B6000hle: _ZN2nn7account9GetUserIdEPNS0_3UidERKNS0_10UserHandleE ×40100535012974000