Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

3.9 KB
Raw Blame
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: v0lumehi <[email protected]>
Date: Wed, 28 Oct 2026 13:33:55 +0100
Subject: [PATCH] Hades II: register the 1.0.137848 update's builds

Profile data only.

Upstream-Status: forwarded seedds/nxnative#485
Reason: Hades II 1.0.137848 update: build rows, shader_versions v0 v1 and the NVN segment keys
Issue: LNPANDY/NX2Apple#123
---
 dm/games/0100A00019DE0000/game.tsv | 34 +++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)

diff --git a/dm/games/0100A00019DE0000/game.tsv b/dm/games/0100A00019DE0000/game.tsv
index aca851d..39368d0 100644
--- a/dm/games/0100A00019DE0000/game.tsv
+++ b/dm/games/0100A00019DE0000/game.tsv
@@ -1,4 +1,5 @@
-# Hades II (Supergiant Games' engine on NVN, SDK 19.3.9), base game v0 (the NACP's display version 0.0.126424).
+# Hades II (Supergiant Games' engine on NVN, SDK 19.3.9 base / 20.5.15 update).
+# Base game v0 (display version 0.0.126424) and update v1.0.137848 are both registered.
 # Started from the NSP script's provisional profile; values marked "Mario's" are not measured for this game yet.
 # Unlike Hades (Vulkan), the Switch version renders with NVN: its 88 shaders are BNSH files in Shaders/NVN/bin (.vert / .frag; the .shader files list each program's pair).
 # The ExeFS has only main and sdk. main's EOS_* imports (Epic Online Services, from nro/EOSSDK-Switch-Shipping.nro, loaded through nn::ro) stay offline: the host
@@ -16,9 +17,11 @@ app_category	public.app-category.action-games
 pad_layout	full
 
 # ---- Versions ----
+# The update's build IDs come from its own ExeFS (the base game's from upstream's profile).
 build	v0	0.0.126424	main=5219053e5eb156be80fbb2f303779531	sdk=d83a56a5558798414c78ec722867a7da
-package	v0
-shader_versions	v0
+build	v1	1.0.137848	main=8ce1ac48e9fa74479051f3520e632df4	sdk=190030518b5d64e5d87b84bc54661af9
+package	v1
+shader_versions	v0 v1
 
 # ---- Files ----
 modules	main sdk
@@ -36,6 +39,31 @@ mem_stack	0x10000000
 app_pool	0xCD500000
 mem_used	0x6c00000
 
+# ---- Widescreen (host only, NOT enabled for this game) ----
+# The swapchain size 1280x720 is hardcoded twice in main: a rodata entry at +0x6d337c ({u32 w,
+# u32 h}, dead data) and two immediate instructions at +0x2a6080 (movz/movk x8) that write it into
+# a config object. Patching the rodata entry does nothing (the immediates win); patching the
+# immediates too makes the init run and then crash later (main+0x48e5a4, null deref in the
+# 0x2a7a20 call chain): the value feeds more than the swapchain, and whatever else depends on
+# 1280x720 specifically is not satisfied by just widening it. Real widescreen for this title
+# needs its resolution pipeline reversed — out of scope here.
+# Round 2 detail: with the immediates patched to 1600x900, the init crashes at
+# main+0x48e5a4 (ldr x2,[x21,#8] with a null x21) inside the 0x2a7a20 chain — the
+# allocation at 0x499840 fails or a lookup misses for the wider size. d2r-mobile's
+# widescreen works because its title's whole resolution path was brought up: PARAMS
+# slots (4 sites) plus the KASPECT aspect cap plus the derived-mask fix, each found
+# and tested one by one. The same depth of work is needed here.
+
+# ---- NVN driver constant segments (Mario's values, the translator's built-in layout, except the texture slot count) ----
+# The game's shaders bind textures at fixed, sparse slots: c2 handles at 0x20 + 8 r for r = 0, 1, 3, 6, 8, 11, 15, 21, 25, 26, 30, 31 and 34 over all 88 shaders.
+# Slot 34 (SceneFade.frag, 0x130) lies past Mario's 32 slots, where his image table starts; this game has no image bindings and no shader reads c2 at run time
+nvn_tex_base	0x20
+nvn_tex_slots	35
+nvn_samp_base	0x568
+nvn_img_base	0x120
+nvn_img_slots	8
+nvn_ssbo_bases	vs=0x110 ps=0x510 cs=0x310
+
 # ---- Shader split ----
 shader_groups	/Shaders/=shaders
 shader_note	Hades II shaders (Shaders/NVN/bin)