Skip to content

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

README: a player's page (install, play, games), with building, history and fork details moved out

v0lumehi4914940aa069
diff --git a/.gitattributes b/.gitattributes
index 8fa2fa78..3c01593a 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,3 @@
-# The games gallery's table (dm/tools/docs_gallery.py writes README.md's gallery from it): a new game is a row at its end. README.md itself is not merged this way; after a
+# The games gallery's table (dm/tools/docs_gallery.py writes GAMES.md's gallery from it): a new game is a row at its end. GAMES.md itself is not merged this way; after a
# conflict in its gallery, run docs_gallery.py. test_docs fails on a game in the table twice
docs/images/gallery.tsv merge=union
diff --git a/BUILDING.md b/BUILDING.md
new file mode 100644
index 00000000..ab735a01
--- /dev/null
+++ b/BUILDING.md
@@ -0,0 +1,74 @@
+# Building from source
+
+The launcher (see the [README](README.md)) runs the same scripts a terminal does. This page is the by-hand route, for advanced users, for development, or when the launcher is not an option: the tools, your `prod.keys`, and the IPA built from a terminal. Contributing rules are in [CONTRIBUTING.md](CONTRIBUTING.md).
+
+## Get the tools
+
+This is the command-line route the launcher drives for you; the build is upstream's. Follow upstream's [README](https://github.com/seedds/nxnative) to install Xcode, Homebrew tools and the Python packages, then pack an IPA.
+
+```bash
+git clone https://github.com/<you>/NX2Apple.git
+cd NX2Apple
+brew bundle --file=Brewfile # xcodegen, zstd, spirv-cross, glslang (the NSP script checks for it), .NET SDK
+python3 -m venv .venv # Homebrew's Python refuses global pip installs (PEP 668)
+.venv/bin/python -m pip install lz4 capstone fonttools nsz "backports.zstd; python_version < '3.14'"
+source .venv/bin/activate # so that python3 below is the venv's (in each new terminal)
+```
+
+## What you need on disk
+
+Three things, none of which ship with the repository:
+
+| What | Where it comes from | Used by |
+|---|---|---|
+| **`prod.keys`** | dumped from **your own console** (see below) | the extractor, to decrypt your game |
+| **The game's NSPs** | dumped from your own cartridge or eShop purchases | the extractor |
+| **Xcode + iOS SDK** | the App Store | the app build |
+
+`prod.keys` is the console's key set — a text file of `name = hex value` lines (~230 entries:
+`master_key_xx`, `titlekek_xx`, `header_key`, `key_area_key_application_xx`, …). Every Switch
+homebrew tool reads this format. It is **not** tied to a specific game: one `prod.keys` decrypts
+any of your games. The only requirement is that the file contains keys for the key generation
+(firmware era) the game was packaged with — a current dump covers every retail game.
+
+Where to put it is up to you; you pass the path with `-k`:
+
+```bash
+# any layout works, e.g.
+~/keys/prod.keys
+# or keep it beside the game's NSPs
+~/Games/Hades2/prod.keys
+```
+
+```bash
+python3 scripts/build_ipa_from_nsp.py ~/Games/Hades2 -k ~/keys/prod.keys
+```
+
+How keys are dumped is documented across the Switch homebrew community (Lockpick_RCM from a
+hacked console is the usual route); this repository does not cover that step and ships none of
+it. Two practical notes from real dumps:
+
+- **Malformed lines.** Some dumpers emit lines whose hex value has the wrong length (33 bad
+ `master_kek_source_*` lines in one real dump), which makes the extraction tool refuse the whole
+ file. Delete the offending lines and keep a backup of the original.
+- **Updates.** An update NSP's ticket may carry a newer key generation than the base game's. The
+ extractor reads the title key straight from the common ticket inside each NSP, so in practice
+ both decrypt fine as long as `prod.keys` is reasonably current — verified here with a base
+ game on generation 15 and its update on 16, using a keys file that only reached 15.
+
+`backports.zstd` is needed for Tears of the Kingdom's zstd dictionaries; other games do not use it.
+
+## Build the IPA
+
+The main build script packs a **slim IPA by default** (no RomFS inside; the app reads the game's data from its folder on the device, `Documents/games/<id>/`), so the build above already produced it. To re-pack just the package later:
+
+```bash
+GAME=<title id> W=<work dir> PATCHED=<patched dir> \
+ ROMFS=<RomFS dir> MSL_IOS=<shader dir> \
+ dm/ios/tools/build_ipa.sh <output.ipa>
+```
+
+`--full-romfs` (or `DM_FULL_ROMFS=1`) packs the RomFS into the package instead — upstream's
+behaviour, only sensible for small games.
+
+The RomFS no longer has to be packed into a shard archive: the build writes the game's data as a single `romfs.img`. Archives made earlier (`romfs.idx` with `romfs.00`, `romfs.01`, …) still load, because the patch queue still carries the reader ([patches/0002-romfsarc.patch](patches/0002-romfsarc.patch), format in [docs/ROMFS_ARCHIVE.md](docs/ROMFS_ARCHIVE.md)).
diff --git a/BUILDING.zh-CN.md b/BUILDING.zh-CN.md
new file mode 100644
index 00000000..4795ea50
--- /dev/null
+++ b/BUILDING.zh-CN.md
@@ -0,0 +1,71 @@
+# 从源码构建
+
+启动器(见 [README.zh-CN.md](README.zh-CN.md))运行的就是终端里的这些脚本。本页是手动路线,给进阶用户、开发,或启动器用不了的时候:工具、你的 `prod.keys`,以及在终端里构建 IPA。英文版:[BUILDING.md](BUILDING.md)。贡献规则见 [CONTRIBUTING.zh-CN.md](CONTRIBUTING.zh-CN.md)。
+
+## 取得工具
+
+归档功能不改变正常构建流程。按上游的 [README](https://github.com/seedds/nxnative) 安装 Xcode、
+Homebrew 工具和 Python 包,然后打 IPA。
+
+```bash
+git clone https://github.com/<you>/NX2Apple.git
+cd NX2Apple
+brew bundle --file=Brewfile # xcodegen, zstd, spirv-cross, glslang(打包脚本会检查它), .NET SDK
+python3 -m venv .venv # Homebrew 的 Python 不允许全局 pip 安装(PEP 668)
+.venv/bin/python -m pip install lz4 capstone fonttools nsz "backports.zstd; python_version < '3.14'"
+source .venv/bin/activate # 之后的 python3 即 venv 的(每个新终端都要执行)
+```
+
+`backports.zstd` 是《王国之泪》的 zstd 字典需要的;其他游戏用不到。
+
+## 你需要准备的文件
+
+三样东西,仓库里都不带:
+
+| 内容 | 来源 | 用途 |
+|---|---|---|
+| **`prod.keys`** | 从**你自己的机器**导出(见下) | 解密你的游戏 |
+| **游戏的 NSP** | 从你自己的卡带或 eShop 购买记录导出 | 供解包 |
+| **Xcode + iOS SDK** | App Store | 构建 App |
+
+`prod.keys` 是主机的密钥集——一个 `名字 = 十六进制值` 格式的文本文件(约 230 条:
+`master_key_xx`、`titlekek_xx`、`header_key`、`key_area_key_application_xx`……)。所有 Switch
+自制软件工具都读这个格式。它**不和某个游戏绑定**:一份 `prod.keys` 能解你所有的游戏。唯一
+要求是文件里包含游戏打包时代(固件世代)对应的密钥——新导出的一份覆盖所有零售游戏。
+
+放在哪里随意,用 `-k` 传路径即可:
+
+```bash
+# 任意布局,比如
+~/keys/prod.keys
+# 或者就放在游戏 NSP 旁边
+~/Games/Hades2/prod.keys
+```
+
+```bash
+python3 scripts/build_ipa_from_nsp.py ~/Games/Hades2 -k ~/keys/prod.keys
+```
+
+密钥的导出方式在 Switch 自制软件社区有完整文档(常见做法是在破解机上跑 Lockpick_RCM);
+本仓库不涉及也不携带这一步。两条来自真实导出文件的实用提示:
+
+- **格式错误的行。** 有的导出工具会写出十六进制值长度不对的行(真实案例:33 行长度错误的
+ `master_kek_source_*`),解包工具会因此拒绝整个文件。删掉这些行,原文件留个备份。
+- **更新包。** 更新 NSP 的 ticket 可能带比本体更新的密钥世代。解包工具直接从每个 NSP 内部的
+ common ticket 读 title key,所以实际使用中只要 `prod.keys` 不算太旧,两份都能解开——这里
+ 实测过本体是世代 15、更新是世代 16,keys 文件只到 15,两个包都正常解出。
+
+## 构建 IPA
+
+主构建脚本**默认打瘦身 IPA**(不含 RomFS;App 从设备上的 `Documents/games/<id>/` 读游戏数据),所以上面的构建
+已经产出。以后只想重新打包时:
+
+```bash
+GAME=<title id> W=<工作目录> PATCHED=<改写目录> \
+ ROMFS=<RomFS 目录> MSL_IOS=<shader 目录> \
+ dm/ios/tools/build_ipa.sh <输出.ipa>
+```
+
+`--full-romfs`(或 `DM_FULL_ROMFS=1`)把 RomFS 打进包里——上游行为,只对小体量游戏有意义。
+
+RomFS 不再需要先打成分片归档:构建会把游戏数据写成一个 `romfs.img`。更早做好的归档(`romfs.idx` 加 `romfs.00`、`romfs.01`……)仍然能加载,因为补丁队列还带着它的读取层([patches/0002-romfsarc.patch](patches/0002-romfsarc.patch),格式见 [docs/ROMFS_ARCHIVE.md](docs/ROMFS_ARCHIVE.md))。
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..7fe615d9
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,23 @@
+# Changelog
+
+The release history of NX2Apple, newest first; the text of the latest release is in [docs/RELEASE_NOTES.md](docs/RELEASE_NOTES.md) and every release is on the [releases page](https://github.com/LNPANDY/NX2Apple/releases). 中文:[CHANGELOG.zh-CN.md](CHANGELOG.zh-CN.md).
+
+Newest first. The fork follows upstream daily, so its game list and host fixes arrive automatically.
+
+| Date | Version | What changed |
+|---|---|---|
+| 2026-10-27 | v0.4.9 | **The library follows the folder**: a Mac game's saves and log live beside the .app and migrate from `~/Library` on first run; **the iPhone's game data can live anywhere** (Files-app picker, remembered); **all eight tracker features landed** (#77–#84: key pre-check, drag & drop, build notifications, older-tools flag, free space, saves between Mac and device, copy diagnostics, controller layouts); Windows: Chinese UI fixed, the Metal probe works under a Chinese user name, the failed-install crash is gone, the Vulkan SDK is found by itself |
+| 2026-10-27 | v0.4.8 | **The Mac launcher becomes usable**: install an iPhone build on a paired device (#28), a controller drives the whole launcher (#56), launch options split into basic and advanced (#54) with Display mode and the render scale in real pixels (#55) and a Mods section through `DM_ROMFS_OVERLAY` (#57), keys and controller buttons remappable (#39); **the build tools update when the app opens** (#60) and **a new version says what it changes** before installing; fixes: every rewrite of every game crashed (`patch_nso.py`'s `TEXT_LO` used before assignment, #59), the Mac app refused every build with "requires Python 3.12" (#53), a ROMs folder holding several games could not build any of them (#58), a failed build pointed at a log that was off screen (#52), a Chinese Windows showed an English interface, CI could not open issues |
+| 2026-10-27 | v0.4.7 | **94 game profiles** (+7: Octopath Traveler, Donkey Kong Country Returns HD, Donkey Kong Country: Tropical Freeze, Mario + Rabbids Sparks of Hope, Kirby and the Forgotten Land, Yoshi's Crafted World, Xenoblade Chronicles 3) from the daily sync; **one host binary, any game's memory layout** (runtime profiles — the foundation for the universal launcher, which has not been built yet); **the language toggle translates the whole interface**; **Xcode betas count** (the check asks xcode-select); a loud notice when an upstream update invalidates cached shaders; the output folder documented as the build cache's home; Windows front end: in-app Python 3.12, SDK clone past Windows' path-length limit, LLVM verified by compiling rather than --version, no more black console windows; rebuilding on an external exFAT work folder no longer crashes |
+| 2026-10-26 | v0.4.6 | **Windows app fixed against real hardware reports**: the missing .NET SDK row (it never appeared, so nothing could install it), no more black console windows stealing the foreground, download mirrors chosen by a speed probe (a 974 s LLVM download on a mainland connection), tools installed outside the app folder so updates stop deleting them, and repository checks that say what git is doing |
+| 2026-10-26 | v0.4.5 | **Mac app output** (a double-clickable .app from the same build); **A15/A16 and earlier devices** via CPU BC decode, as an app switch; per-game data folders (`Documents/games/<id>/`) so an external drive works; NRO header no longer scanned as code; the nightly sync can no longer fail silently |
+| 2026-10-26 | v0.4.4 | **Fixes a build failure that hit every app build in v0.4.3** (`work` read before it was assigned); 72 games (+3) |
+| 2026-10-26 | v0.4.3 | NSZ/XCZ dumps work out of the box; a fresh Xcode now reports its missing iOS SDK; three environment traps closed |
+| 2026-10-25 | v0.4.2 | The app downloads and updates the repository itself, and updates itself; 58 games (+10); save-loading deadlock fixed; NuGet failures self-heal |
+| 2026-10-24 | v0.4.1 | Animal Crossing: New Horizons verified on an iPhone (103,645 files → 72 shards); archive packing reuses unchanged work |
+| 2026-10-23 | v0.4.0 | The archive folder is copy-ready with an install guide; dependency list collapses; per-game update versions in the table; renamed to NX2Apple |
+| 2026-10-23 | v0.3.1 | Fixes for Homebrew Python 3.15 and `DOTNET_ROOT` (#1, #2) |
+| 2026-10-22 | v0.3.0 | App icon, 46 games |
+| 2026-10-21 | v0.2.1 | Python 3.9 build fix |
+| 2026-10-20 | v0.2.0 | Bilingual (English / 中文) |
+| 2026-10-20 | v0.1.0 | First release: GUI front end, RomFS archiving |
diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md
new file mode 100644
index 00000000..c0b64c2f
--- /dev/null
+++ b/CHANGELOG.zh-CN.md
@@ -0,0 +1,23 @@
+# 更新日志
+
+NX2Apple 的版本历史,最新在上;最新版本的完整说明见 [docs/RELEASE_NOTES.md](docs/RELEASE_NOTES.md)(英文),所有版本见[发布页](https://github.com/LNPANDY/NX2Apple/releases)。English: [CHANGELOG.md](CHANGELOG.md).
+
+最新在上。本 fork 每天跟随上游,标「同步上游」的条目是自动来的。
+
+| 日期 | 版本 | 变更 |
+|---|---|---|
+| 2026-10-27 | v0.4.9 | **游戏库跟着文件夹走**:Mac 游戏的存档和日志放在 .app 旁边,首次运行自动从 `~/Library` 迁移;**iPhone 的游戏数据可以放任何位置**(Files 应用选择器,自动记住);**追踪器八项需求全部落地**(#77–#84:密钥预检、文件拖拽、构建通知、旧工具标记、空间回收、Mac 与设备存档互拷、复制诊断报告、手柄布局);Windows:中文界面修复、中文用户名下 Metal 探针正常、依赖安装失败闪退修复、Vulkan SDK 自动识别 |
+| 2026-10-27 | v0.4.8 | **Mac 启动器真正可用了**:把 iPhone 版装到配对设备(#28)、手柄导航整个启动器(#56)、启动选项分基础/高级(#54)并加上显示模式与真实像素的 Render scale(#55)、Mods 区走 `DM_ROMFS_OVERLAY`(#57)、键位与手柄按钮可自定义(#39);**启动时自动更新构建工具**(#60),**新版本会先说明改了什么**再让你决定;修复:每一款游戏的每一次重写都会崩(`patch_nso.py` 的 `TEXT_LO` 先用后定义,#59)、Mac 版建什么都报「需要 Python 3.12」(#53)、一个文件夹多款游戏时一款都建不了(#58)、构建失败指向窗口外的日志(#52)、Windows 中文系统显示英文界面、CI 建不了 issue |
+| 2026-10-27 | v0.4.7 | **79 个游戏 profile**(+7:歧路旅人、大金刚国度 归乡 HD、大金刚国度 热带冻结)来自每日同步;**一个宿主二进制适配任意游戏的内存布局**(运行时 profile——为通用启动器打下的地基,启动器本身尚未开始);**语言切换现在翻译整个界面**;**Xcode Beta 也算数**(检测改问 xcode-select);上游更新导致 shader 缓存失效时会醒目提示;「输出目录」同时是构建缓存的位置已写明;Windows 前端:App 内装 Python 3.12、SDK 克隆突破 Windows 路径长度限制、LLVM 用试编译而不是 --version 验证、不再弹黑色命令行窗口;外置 exFAT 工作目录重建不再崩溃 |
+| 2026-10-26 | v0.4.6 | **Windows 版按真机反馈修好**:.NET SDK 那一行以前根本不存在(所以永远装不上)、不再弹出黑色命令行窗口抢走焦点、下载走镜像并用测速挑最快的一个(真机上 LLVM 曾下 974 秒)、工具装到 App 目录外所以更新不再把它删掉、检查更新会说明 git 在做什么 |
+| 2026-10-26 | v0.4.5 | **可输出 Mac App**(同一次构建产出可双击运行的 .app);**支持 A15 / A16 及更早设备**(CPU 解压 BC 纹理,App 内开关);每游戏独立数据目录(`Documents/games/<id>/`),外置硬盘可用;NRO 头不再被当作代码扫描;每日同步不会再静默失败 |
+| 2026-10-26 | v0.4.4 | **修复了 v0.4.3 里每个 App 构建都会失败的问题**(`work` 在赋值前被读取);72 款游戏(+3) |
+| 2026-10-26 | v0.4.3 | NSZ/XCZ 压缩格式开箱可用;全新 Xcode 会明说缺 iOS SDK;三个环境陷阱关掉 |
+| 2026-10-25 | v0.4.2 | App 自己下载并更新仓库、也能更新自己;58 款游戏(+10);读档死锁修复;NuGet 报错自动恢复 |
+| 2026-10-24 | v0.4.1 | 集合啦!动物森友会在 iPhone 上验证通过(103,645 文件 → 72 片);归档打包复用未变的成果 |
+| 2026-10-23 | v0.4.0 | 归档文件夹直接可拷贝并附安装引导;依赖列表可折叠;表格列出每个游戏的所需版本;更名为 NX2Apple |
+| 2026-10-23 | v0.3.1 | 修复 Homebrew Python 3.15 与 `DOTNET_ROOT` 问题(#1、#2) |
+| 2026-10-22 | v0.3.0 | App 图标,46 款游戏 |
+| 2026-10-21 | v0.2.1 | Python 3.9 构建修复 |
+| 2026-10-20 | v0.2.0 | 中英双语 |
+| 2026-10-20 | v0.1.0 | 首个版本:图形界面、RomFS 归档 |
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2a13d017..11130874 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,6 @@
# Contributing
-Issues and pull requests are welcome. NX2Apple is the launcher (`frontend/`, `frontend-qt/`) and the glue around the [nxnative](https://github.com/seedds/nxnative) engine, which is vendored here as upstream plus a queue of patches, and bumped to upstream's latest every day. [AGENTS.md](AGENTS.md) describes the engine.
+Issues and pull requests are welcome. NX2Apple is the launcher (`frontend/`, `frontend-qt/`) and the glue around the [nxnative](https://github.com/seedds/nxnative) engine, which is vendored here as upstream plus a queue of patches, and bumped to upstream's latest every day. [AGENTS.md](AGENTS.md) describes the engine. Building by hand from a terminal (tools, `prod.keys`, the IPA) is on its own page: [BUILDING.md](BUILDING.md).
## Reporting a problem
@@ -17,6 +17,21 @@ Pick a form: **Game problem**, **Build problem** or **Launcher problem or idea**
**Never attach keys, game files or anything extracted from a game.** Logs, screenshots, title IDs and build IDs are fine.
+## Helping with games
+
+Each new game needs its own bring-up: a profile (build IDs, memory layout, texture slots), a shader
+reader if it packs them in a form we do not read, and patch points. **Two ways to help, both
+useful:**
+
+- **Report a game that works** — if you got a title outside the verified list running, open an issue
+ with the title ID, the update version, and what you did. It becomes a profile others can use.
+- **Send the shaders that are missing** — if a game runs but stutters on first use of an effect, its
+ shader variants are missing from the map. The host can dump what it cannot find
+ (`DM_NVN_SHDUMP=<dir>`); attach those and we add them to `shader_map.tsv` for everyone.
+
+Issues with a full `Documents/log.txt` get looked at first — that log usually names the exact
+missing piece.
+
## A pull request
- One change per PR, off `main`. Commit messages say what changed and why, in plain English, as `git log` does.
diff --git a/CONTRIBUTING.zh-CN.md b/CONTRIBUTING.zh-CN.md
new file mode 100644
index 00000000..0440e471
--- /dev/null
+++ b/CONTRIBUTING.zh-CN.md
@@ -0,0 +1,16 @@
+# 参与贡献
+
+英文版:[CONTRIBUTING.md](CONTRIBUTING.md)(提 issue 要附什么、提 pull request 的规则、补丁队列都在那里)。在终端里手动构建(工具、`prod.keys`、IPA)见 [BUILDING.zh-CN.md](BUILDING.zh-CN.md)。下面是帮忙补充游戏。
+
+## 帮忙补充游戏
+
+每款新游戏都需要单独的 bring-up:profile(build ID、内存布局、纹理槽位)、必要时的 shader 读取器、
+以及补丁点。**两种帮忙方式,都有用:**
+
+- **报告一款能跑的游戏** —— 如果你让验证清单之外的游戏跑起来了,开 issue 附上 title ID、更新版本和
+ 你做的步骤,它会变成一个别人也能用的 profile。
+- **提交缺失的着色器** —— 如果游戏能跑但首次使用某个效果时卡顿,说明它的 shader 变体不在映射表里。
+ 宿主可以导出找不到的部分(`DM_NVN_SHDUMP=<dir>`);附上它们,我们把它加进 `shader_map.tsv`,
+ 所有人都受益。
+
+带完整 `Documents/log.txt` 的 issue 会优先看——那份日志通常能直接指出缺的是什么。
diff --git a/GAMES.md b/GAMES.md
new file mode 100644
index 00000000..20ffb28f
--- /dev/null
+++ b/GAMES.md
@@ -0,0 +1,308 @@
+# Games
+
+Every game this fork has a profile for, with the update NSP each one needs. The player's page is [README.md](README.md); [dm/games/README.md](dm/games/README.md) lists the same games with the engine's own notes on each. This page is the full list, so the README stays short. 中文:[GAMES.zh-CN.md](GAMES.zh-CN.md).
+
+## Gallery
+
+Screenshots and IPA sizes. The block between the markers is written by `dm/tools/docs_gallery.py` from `docs/images/gallery.tsv` (add a row there, then run the script); do not edit it by hand.
+
+<!-- gallery: written by dm/tools/docs_gallery.py from docs/images/gallery.tsv; change the table, then run it -->
+<table>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/mario-kart-8-deluxe.jpg" width="256" alt="Mario Kart 8 Deluxe"><br><sub><b>Mario Kart 8 Deluxe</b><br>~11.9 GB · no Mii heads</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/mario-vs-donkey-kong.jpg" width="256" alt="Mario vs. Donkey Kong"><br><sub><b>Mario vs. Donkey Kong</b><br>~1.6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/paper-mario-the-thousand-year-door.jpg" width="256" alt="Paper Mario: The Thousand-Year Door"><br><sub><b>Paper Mario: The Thousand-Year Door</b><br>~5 GB · 60 fps with 1.0.1</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-3d-world.jpg" width="256" alt="Super Mario 3D World + Bowser's Fury"><br><sub><b>Super Mario 3D World + Bowser's Fury</b><br>~3 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-bros-wonder.jpg" width="256" alt="Super Mario Bros. Wonder"><br><sub><b>Super Mario Bros. Wonder</b><br>~4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-galaxy.jpg" width="256" alt="Super Mario Galaxy"><br><sub><b>Super Mario Galaxy</b><br>~3 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-galaxy-2.jpg" width="256" alt="Super Mario Galaxy 2"><br><sub><b>Super Mario Galaxy 2</b><br>~3 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-odyssey.jpg" width="256" alt="Super Mario Odyssey"><br><sub><b>Super Mario Odyssey</b><br>~6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/zelda-breath-of-the-wild.jpg" width="256" alt="The Legend of Zelda: Breath of the Wild"><br><sub><b>The Legend of Zelda: Breath of the Wild</b><br>~16 GB · 60 fps with 1.9.0</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/zelda-links-awakening.jpg" width="256" alt="The Legend of Zelda: Link's Awakening"><br><sub><b>The Legend of Zelda: Link's Awakening</b><br>~6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/zelda-tears-of-the-kingdom.jpg" width="256" alt="The Legend of Zelda: Tears of the Kingdom"><br><sub><b>The Legend of Zelda: Tears of the Kingdom</b><br>~17 GB · 60 fps with 1.4.3</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/13-sentinels.jpg" width="256" alt="13 Sentinels: Aegis Rim"><br><sub><b>13 Sentinels: Aegis Rim</b><br>~5 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/absolum.jpg" width="256" alt="Absolum"><br><sub><b>Absolum</b><br>~2 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/ace-attorney-investigations.jpg" width="256" alt="Ace Attorney Investigations Collection"><br><sub><b>Ace Attorney Investigations Collection</b><br>~7 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/advance-wars-1-2-re-boot-camp.jpg" width="256" alt="Advance Wars 1+2: Re-Boot Camp"><br><sub><b>Advance Wars 1+2: Re-Boot Camp</b><br>~7.1 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/ai-the-somnium-files.jpg" width="256" alt="AI: THE SOMNIUM FILES"><br><sub><b>AI: THE SOMNIUM FILES</b><br>~8.3 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/ai-the-somnium-files-nirvana-initiative.jpg" width="256" alt="AI: THE SOMNIUM FILES - nirvanA Initiative"><br><sub><b>AI: THE SOMNIUM FILES - nirvanA Initiative</b><br>~11.6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/animal-crossing-new-horizons.jpg" width="256" alt="Animal Crossing: New Horizons"><br><sub><b>Animal Crossing: New Horizons</b><br>~10.5 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/animal-well.png" width="256" alt="ANIMAL WELL"><br><sub><b>ANIMAL WELL</b><br>~54 MB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/astral-chain.png" width="256" alt="ASTRAL CHAIN"><br><sub><b><a href="dm/games/01007300020FA000/README.md">ASTRAL CHAIN</a></b><br>~9.7 GB · 60 fps target with 1.0.1</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/balatro.jpg" width="256" alt="Balatro"><br><sub><b>Balatro</b><br>~82 MB · played by touch</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/ball-x-pit.jpg" width="256" alt="BALL x PIT"><br><sub><b>BALL x PIT</b><br>~1.1 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/bayonetta.jpg" width="256" alt="Bayonetta"><br><sub><b>Bayonetta</b><br>~8.8 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/bayonetta-2.jpg" width="256" alt="Bayonetta 2"><br><sub><b>Bayonetta 2</b><br>~12.5 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/bayonetta-3.jpg" width="256" alt="Bayonetta 3"><br><sub><b>Bayonetta 3</b><br>~14.2 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/big-brain-academy-brain-vs-brain.jpg" width="256" alt="Big Brain Academy: Brain vs. Brain"><br><sub><b>Big Brain Academy: Brain vs. Brain</b><br>~0.8 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/brain-memory-training-academy.jpg" width="256" alt="Brain Memory Training Academy"><br><sub><b>Brain Memory Training Academy</b><br>~0.1 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/captain-toad-treasure-tracker.jpg" width="256" alt="Captain Toad: Treasure Tracker"><br><sub><b>Captain Toad: Treasure Tracker</b><br>~2 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/catherine-full-body.jpg" width="256" alt="Catherine: Full Body"><br><sub><b>Catherine: Full Body</b><br>~14 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/celeste.jpg" width="256" alt="Celeste"><br><sub><b>Celeste</b><br>~0.9 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/cuphead.jpg" width="256" alt="Cuphead"><br><sub><b>Cuphead</b><br>~5 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/dark-souls-remastered-creation.jpg" width="256" alt="DARK SOULS: REMASTERED"><br><sub><b>DARK SOULS: REMASTERED</b><br>~4 GB · 60 fps with 1.0.3</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/digimon-story-cyber-sleuth.jpg" width="256" alt="Digimon Story Cyber Sleuth: Complete Edition"><br><sub><b>Digimon Story Cyber Sleuth: Complete Edition</b><br>~5 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/donkey-kong-country-tropical-freeze.jpg" width="256" alt="Donkey Kong Country: Tropical Freeze"><br><sub><b>Donkey Kong Country: Tropical Freeze</b><br>~7.3 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/dragon-quest-vii-reimagined.jpg" width="256" alt="DRAGON QUEST VII Reimagined"><br><sub><b>DRAGON QUEST VII Reimagined</b><br>~5.9 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/dragon-quest-xi-s.jpg" width="256" alt="DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition"><br><sub><b>DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition</b><br>~15 GB · 60 fps with 1.0.4</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-resonance.jpg" width="256" alt="FINAL FANTASY RESONANCE"><br><sub><b>FINAL FANTASY RESONANCE</b><br>~10 GB · 60 fps with 1.0.1</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-tactics.jpg" width="256" alt="FINAL FANTASY TACTICS - The Ivalice Chronicles"><br><sub><b>FINAL FANTASY TACTICS - The Ivalice Chronicles</b><br>~11 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/fire-emblem-engage.jpg" width="256" alt="Fire Emblem Engage"><br><sub><b>Fire Emblem Engage</b><br>~15 GB · 60 fps with 2.0.0</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/fire-emblem-three-houses.jpg" width="256" alt="Fire Emblem: Three Houses"><br><sub><b>Fire Emblem: Three Houses</b><br>~13 GB · 60 fps with 1.2.0</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/ghost-trick-phantom-detective.jpg" width="256" alt="Ghost Trick: Phantom Detective"><br><sub><b>Ghost Trick: Phantom Detective</b><br>~3 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/the-great-ace-attorney-chronicles.jpg" width="256" alt="The Great Ace Attorney Chronicles"><br><sub><b>The Great Ace Attorney Chronicles</b><br>~4 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/hades.jpg" width="256" alt="Hades"><br><sub><b>Hades</b><br>~4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/hades-ii.jpg" width="256" alt="Hades II"><br><sub><b>Hades II</b><br>~4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/hollow-knight-silksong.jpg" width="256" alt="Hollow Knight: Silksong"><br><sub><b>Hollow Knight: Silksong</b><br>~6.4 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/hyrule-warriors-age-of-calamity.jpg" width="256" alt="Hyrule Warriors: Age of Calamity"><br><sub><b>Hyrule Warriors: Age of Calamity</b><br>~15 GB · 60 fps with 1.3.0</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/kirby-and-the-forgotten-land.jpg" width="256" alt="Kirby and the Forgotten Land"><br><sub><b>Kirby and the Forgotten Land</b><br>~6.4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/luigis-mansion-3.jpg" width="256" alt="Luigi's Mansion 3"><br><sub><b>Luigi's Mansion 3</b><br>~7.5 GB · 60 fps with 1.4.0</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/metroid-dread.jpg" width="256" alt="Metroid Dread"><br><sub><b>Metroid Dread</b><br>~5 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/monster-hunter-rise.jpg" width="256" alt="Monster Hunter Rise"><br><sub><b>Monster Hunter Rise</b><br>~22 GB · 60 fps with 16.0.2</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/monster-train-2.jpg" width="256" alt="Monster Train 2"><br><sub><b>Monster Train 2</b><br>~1.6 GB · 60 fps with 1.1.1</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/octopath-traveler.jpg" width="256" alt="OCTOPATH TRAVELER"><br><sub><b>OCTOPATH TRAVELER</b><br>~3.6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/octopath-traveler-0.jpg" width="256" alt="Octopath Traveler 0"><br><sub><b>Octopath Traveler 0</b><br>~4 GB · 60 fps with 1.0.5</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/octopath-traveler-ii.jpg" width="256" alt="Octopath Traveler II"><br><sub><b>Octopath Traveler II</b><br>~5.9 GB · 60 fps with 1.1.1</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/patricks-parabox.jpg" width="256" alt="Patrick's Parabox"><br><sub><b>Patrick's Parabox</b><br>~0.2 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/persona-5-royal.jpg" width="256" alt="Persona 5 Royal"><br><sub><b>Persona 5 Royal</b><br>~14.9 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/pikmin-4.jpg" width="256" alt="Pikmin 4"><br><sub><b>Pikmin 4</b><br>~10.8 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-brilliant-diamond.jpg" width="256" alt="Pokémon Brilliant Diamond"><br><sub><b>Pokémon Brilliant Diamond</b><br>~4.6 GB · 60 fps with 1.3.0</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-legends-z-a.jpg" width="256" alt="Pokémon Legends: Z-A"><br><sub><b>Pokémon Legends: Z-A</b><br>~6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-scarlet.png" width="256" alt="Pokémon Scarlet"><br><sub><b>Pokémon Scarlet</b><br>~7.0 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-sword.jpg" width="256" alt="Pokémon Sword"><br><sub><b>Pokémon Sword</b><br>~12.4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-shield.jpg" width="256" alt="Pokémon Shield"><br><sub><b>Pokémon Shield</b><br>~12.4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/portal.jpg" width="256" alt="Portal"><br><sub><b>Portal</b><br>~2.6 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/raging-loop.jpg" width="256" alt="Raging Loop"><br><sub><b>Raging Loop</b><br>~0.9 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/rhythm-heaven-groove.jpg" width="256" alt="Rhythm Heaven Groove"><br><sub><b>Rhythm Heaven Groove</b><br>~3 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/romance-of-the-three-kingdoms-8-remake.jpg" width="256" alt="ROMANCE OF THE THREE KINGDOMS 8 REMAKE"><br><sub><b>ROMANCE OF THE THREE KINGDOMS 8 REMAKE</b><br>~16.8 GB · controller only</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/sea-of-stars.jpg" width="256" alt="Sea of Stars"><br><sub><b>Sea of Stars</b><br>~5.1 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/shin-megami-tensei-v-vengeance.jpg" width="256" alt="SHIN MEGAMI TENSEI V: Vengeance"><br><sub><b>SHIN MEGAMI TENSEI V: Vengeance</b><br>~14.6 GB · 60 fps with 1.0.3</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/stardew-valley.jpg" width="256" alt="Stardew Valley"><br><sub><b>Stardew Valley</b><br>~0.6 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/steins-gate-reboot.jpg" width="256" alt="STEINS;GATE RE:BOOT"><br><sub><b>STEINS;GATE RE:BOOT</b><br>~6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/super-smash-bros-ultimate.jpg" width="256" alt="Super Smash Bros. Ultimate"><br><sub><b>Super Smash Bros. Ultimate</b><br>~17.5 GB · offline</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/taiko-risshiden-v-dx.jpg" width="256" alt="Taiko Risshiden V DX"><br><sub><b>Taiko Risshiden V DX</b><br>~3.3 GB · Japanese · played by touch</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/unicorn-overlord.jpg" width="256" alt="Unicorn Overlord"><br><sub><b>Unicorn Overlord</b><br>~4 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/yoshis-crafted-world.jpg" width="256" alt="Yoshi's Crafted World"><br><sub><b><a href="dm/games/01006000040C2000/README.md">Yoshi's Crafted World</a></b><br>~6.1 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/nier-automata.png" width="256" alt="NieR:Automata The End of YoRHa Edition"><br><sub><b>NieR:Automata The End of YoRHa Edition</b><br>~10.9 GB · 60 fps with 1.0.3</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/zelda-echoes-of-wisdom.jpg" width="256" alt="The Legend of Zelda: Echoes of Wisdom"><br><sub><b>The Legend of Zelda: Echoes of Wisdom</b><br>~7.8 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/donkey-kong-country-returns-hd.png" width="256" alt="Donkey Kong Country Returns HD"><br><sub><b>Donkey Kong Country Returns HD</b><br>~11.6 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/mario-rabbids-sparks-of-hope.jpg" width="256" alt="Mario + Rabbids Sparks of Hope"><br><sub><b>Mario + Rabbids Sparks of Hope</b><br>~9.8 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/xenoblade-chronicles-2.jpg" width="256" alt="Xenoblade Chronicles 2"><br><sub><b>Xenoblade Chronicles 2</b><br>~17.1 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/xenoblade-chronicles-3.jpg" width="256" alt="Xenoblade Chronicles 3"><br><sub><b>Xenoblade Chronicles 3</b><br>~19.2 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-crystal-chronicles.jpg" width="256" alt="FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition"><br><sub><b>FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition</b></sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/return-of-the-obra-dinn.png" width="256" alt="Return of the Obra Dinn"><br><sub><b><a href="dm/games/010032E00E6E2000/README.md">Return of the Obra Dinn</a></b><br>~0.9 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/blasphemous-2.png" width="256" alt="Blasphemous 2"><br><sub><b><a href="dm/games/010040801A4C8000/README.md">Blasphemous 2</a></b><br>~1.5 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/silver-pines.jpg" width="256" alt="Silver Pines"><br><sub><b><a href="dm/games/0100D5B026844000/README.md">Silver Pines</a></b></sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/blasphemous.jpg" width="256" alt="Blasphemous"><br><sub><b><a href="dm/games/0100698009C6E000/README.md">Blasphemous</a></b><br>~0.9 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-x-x2-hd-remaster.jpg" width="256" alt="FINAL FANTASY X/X-2 HD Remaster"><br><sub><b><a href="dm/games/0100BC300CB48000/README.md">FINAL FANTASY X/X-2 HD Remaster</a></b><br>~26.5 GB</sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/mario-rabbids-kingdom-battle.jpg" width="256" alt="Mario + Rabbids Kingdom Battle"><br><sub><b><a href="dm/games/010067300059A000/README.md">Mario + Rabbids Kingdom Battle</a></b><br>~5 GB</sub></td>
+</tr>
+<tr>
+<td align="center" valign="top" width="33%"><img src="docs/images/persona-4-golden.jpg" width="256" alt="Persona 4 Golden"><br><sub><b><a href="dm/games/010062B01525C000/README.md">Persona 4 Golden</a></b></sub></td>
+<td align="center" valign="top" width="33%"><img src="docs/images/xenoblade-chronicles-definitive-edition.jpg" width="256" alt="Xenoblade Chronicles: Definitive Edition"><br><sub><b><a href="dm/games/0100FF500E34A000/README.md">Xenoblade Chronicles: Definitive Edition</a></b><br>~13.2 GB</sub></td>
+<td></td>
+</tr>
+</table>
+<!-- end of gallery -->
+
+## Verified games
+
+**3 verified end to end on this fork** (build → install → play on a real iPhone), **45 reported
+playable upstream**, **94 profiles** in total. The full table with the exact update version each
+game needs is [below](#profiles).
+
+| Game | Verified here | Notes |
+|---|---|---|
+| **Tears of the Kingdom** | ✅ | 304,243 files → 127 archive shards, byte-verified |
+| **Hades II** | ✅ | 33-file archive |
+| **Animal Crossing: New Horizons** | ✅ | 103,645 files → 72 shards, runs smoothly |
+
+---
+
+## Profiles
+
+94 game profiles ship with this repository. A profile is what makes a build possible —
+the game's build IDs, memory layout, shader tables and per-game switches — and this fork adds the
+RomFS archive layer on top, so a large game can be installed at all.
+
+The update column is the version the build actually checks: the update NSP's display version
+must match the profile's registered build (the base game's own version does not matter — the
+update layers over it). "无(v0)" = the base game alone is enough.
+
+| Game | Title ID | Update required | Status |
+|---|---|---|---|
+| Super Mario Odyssey | `0100000000010000` | 1.4.1 (v393216) | Playable on an iPhone (upstream) |
+| Pokémon Brilliant Diamond | `0100000011D90000` | 1.3.0 (v393216) | Playable on an iPhone (upstream) |
+| Ace Attorney Investigations Collection | `010005501E68C000` | 1.0.0.2 (v131072) | Profile present; not verified on a phone |
+| Hollow Knight: Silksong | `010013C00E930000` | 1.0.30000 (v655360) | Profile present; not verified on a phone |
+| Digimon Story Cyber Sleuth: Complete Edition | `010014E00DB56000` | 1.0.3 (v196608) | Profile present; not verified on a phone |
+| Super Mario Bros. Wonder | `010015100B514000` | 1.2.1 (v327680) | Playable on an iPhone (upstream) |
+| Mario Kart 8 Deluxe | `0100152000022000` | 4.0.1 (v1507328) | Playable on an iPhone (upstream) |
+| Raging Loop | `010020400E1C2000` | 无(v0) | Profile present; not verified on a phone |
+| ANIMAL WELL | `010020D01AD24000` | 1.0.10 (v655360) | Playable on an iPhone (upstream) |
+| Super Mario 3D World + Bowser's Fury | `010028600EBDA000` | 1.2.2 (v262144) | Playable on an iPhone (upstream) |
+| Ghost Trick: Phantom Detective | `010029B018432000` | 无(v0) | Playable on an iPhone (upstream) |
+| Hyrule Warriors: Age of Calamity | `01002B00111A2000` | 1.3.0 (v327680) | Playable on an iPhone (upstream) |
+| Celeste | `01002B30028F6000` | 1.4.1.1 (v589824) | Profile present; not verified on a phone |
+| Advance Wars 1+2: Re-Boot Camp | `0100300012F2A000` | 无(v0) | Playable on an iPhone (upstream) |
+| Mario + Rabbids® Sparks of Hope | `0100317013770000` | 1.6.2225577 (v393216) | Profile present; not verified on a phone |
+| Return of the Obra Dinn | `010032E00E6E2000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
+| Taiko Risshiden V DX | `0100346017304000` | 1.1.1 (v131072) | Playable on an iPhone by touch (upstream) |
+| The Great Ace Attorney Chronicles | `010036E00FB20000` | 无(v0) | Playable on an iPhone (upstream) |
+| FINAL FANTASY TACTICS - The Ivalice Chronicles | `010038B015560000` | 1.4.0 (v393216) | Profile present; not verified on a phone |
+| 13 Sentinels: Aegis Rim | `01003FC01670C000` | 1.10 (v65536) | Playable on an iPhone (upstream) |
+| Blasphemous 2 | `010040801A4C8000` | 1.0.8 (v524288) | Profile present; not verified on a phone |
+| 13 Sentinels: Aegis Rim (Japan) | `010045C014650000` | 无(v0) | Profile present; not verified on a phone |
+| Bayonetta 3 | `01004A4010FEA000` | 1.2.0 (v131072) | Playable on an iPhone (upstream) |
+| DARK SOULS: REMASTERED | `01004AB00A260000` | 1.0.3 (v196608) | Profile present; not verified on a phone |
+| Kirby and the Forgotten Land | `01004D300C5AE000` | 1.1.0 (v65536) | Profile present; not verified on a phone |
+| Monster Train 2 | `010051701FB46000` | 1.1.1 (v131072) | Playable on an iPhone (upstream) |
+| OCTOPATH TRAVELER 0 | `01005270232F2000` | 1.0.5 (v327680) | Profile present; not verified on a phone |
+| Hades | `0100535012974000` | 1.0.38233 (v589824) | Playable on an iPhone (upstream) |
+| Unicorn Overlord (Asia) | `010054B01AD92000` | 1.05 (v262144) | Profile present; not verified on a phone |
+| Fire Emblem: Three Houses | `010055D009F78000` | 1.2.0 (v327680) | Playable on an iPhone (upstream) |
+| NieR:Automata The End of YoRHa Edition | `010056B015FE8000` | 1.0.3 (v131072) | Playable on an iPhone (upstream) |
+| OCTOPATH TRAVELER | `010057D006492000` | 1.0.5 (v327680) | Profile present; not verified on a phone |
+| Persona 5 Royal | `01005CA01580E000` | 1.0.2 (v65536) | Playable on an iPhone (upstream) |
+| Yoshi's Crafted World | `01006000040C2000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
+| FINAL FANTASY RESONANCE | `0100606026F12000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
+| Big Brain Academy: Brain vs. Brain | `0100620012D6E000` | 1.2.0 (v131072) | Profile present; not verified on a phone |
+| Persona 4 Golden | `010062B01525C000` | 1.0.2 (v131072) | Profile present; not verified on a phone |
+| Mario + Rabbids Kingdom Battle | `010067300059A000` | 1.9.589692 (v589824) | Profile present; not verified on a phone |
+| Unicorn Overlord | `010069401ADB8000` | 1.05 (v262144) | Profile present; not verified on a phone |
+| Blasphemous | `0100698009C6E000` | 1.0.8 (v524288) | Profile present; not verified on a phone |
+| SHIN MEGAMI TENSEI V: Vengeance | `010069C01AB82000` | 1.0.3 (v196608) | Playable on an iPhone (upstream) |
+| Super Smash Bros. Ultimate | `01006A800016E000` | 13.0.5 (v2031616) | Playable on an iPhone (upstream) |
+| The Legend of Zelda: Link's Awakening | `01006BB00C6F0000` | 1.1.0 (v131072) | Playable on an iPhone (upstream) |
+| DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition | `01006C300E9F0000` | 1.0.4 (v262144) | Profile present; not verified on a phone |
+| Animal Crossing: New Horizons | `01006F8002326000` | 3.0.3 (v2228224) | **Verified here** — builds, installs and runs smoothly on an iPhone; 103,645 files into 72 archive shards |
+| AI: THE SOMNIUM FILES - nirvanA Initiative | `0100713016CCC000` | 1.0.2 (v131072) | Playable on an iPhone (upstream) |
+| ASTRAL CHAIN | `01007300020FA000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
+| Xenoblade Chronicles 3 | `010074F013262000` | 2.2.1 (v720896) | Profile present; not verified on a phone |
+| Bayonetta | `010076F0049A2000` | 1.1 (v65536) | Playable on an iPhone (upstream) |
+| Bayonetta 2 | `01007960049A0000` | 1.2 (v131072) | Playable on an iPhone (upstream) |
+| Portal | `01007BB017812000` | 1.0.3 (v196608) | Playable on an iPhone (upstream) |
+| The Legend of Zelda: Breath of the Wild | `01007EF00011E000` | 1.9.0 (v1114112) | Playable on an iPhone (upstream) |
+| BALL x PIT | `010086A022444000` | 1.293 (v393216) | Playable on an iPhone (upstream) |
+| AI: THE SOMNIUM FILES | `010089B00D09C000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
+| STEINS;GATE RE:BOOT | `01008BC024FDE000` | 1.0.3 (v131072) | Profile present; not verified on a phone |
+| Sea of Stars | `01008C0016544000` | 2.0.59001 (v786432) | Playable on an iPhone (upstream) |
+| The Legend of Zelda: Echoes of Wisdom | `01008CF01BAAC000` | 1.1.0 (v196608) | Playable on an iPhone (upstream) |
+| 13 Sentinels: Aegis Rim (Asia) | `01008D7016438000` | 无(v0) | Playable on an iPhone (upstream) |
+| Pokémon Shield | `01008DB008C2C000` | 1.3.2 (v458752) | Playable on an iPhone (upstream) |
+| Metroid Dread | `010093801237C000` | 2.1.0 (v327680) | Playable on an iPhone (upstream) |
+| Super Mario Galaxy | `010099C022B96000` | 1.3.1 (v327680) | Playable on an iPhone (upstream) |
+| Captain Toad: Treasure Tracker | `01009BF0072D4000` | 1.4.2 (v393216) | Profile present; not verified on a phone |
+| Donkey Kong Country Returns HD | `01009D901BC56000` | 1.1.0 (v65536) | Profile present; not verified on a phone |
+| Hades II | `0100A00019DE0000` | 1.0.137848 (v1) | **Verified here** — builds, installs and runs on an iPhone; 33-file archive |
+| OCTOPATH TRAVELER II | `0100A3501946E000` | 1.1.1 (v131072) | Playable on an iPhone (upstream) |
+| Pokémon Scarlet | `0100A3D008C5C000` | 无(v0) | Profile present; not verified on a phone |
+| Cuphead | `0100A5C00D162000` | 1.3.7 (v655360) | Profile present; not verified on a phone |
+| Fire Emblem Engage | `0100A6301214E000` | 2.0.0 (v327680) | Playable on an iPhone (upstream) |
+| Absolum | `0100A83022A22000` | 1.1.2 (v458752) | Profile present; not verified on a phone |
+| DRAGON QUEST VII Reimagined | `0100A9D01C446000` | 1.2.0 (v131072) | Profile present; not verified on a phone |
+| Pokémon Sword | `0100ABF008968000` | 1.3.2 (v458752) | Playable on an iPhone (upstream) |
+| Monster Hunter Rise | `0100B04011742000` | 16.0.2 (v2228224) | Profile present; not verified on a phone |
+| Pikmin 4 | `0100B7C00933A000` | 1.1.1 (v262144) | Playable on an iPhone (upstream) |
+| FINAL FANTASY RESONANCE (Asian release) | `0100B8A026F14000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
+| NieR:Automata The End of YoRHa Edition | `0100B8E016F76000` | 1.0.3 (v131072) | Profile present; not verified on a phone |
+| Mario vs. Donkey Kong | `0100B99019412000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
+| FINAL FANTASY X/X-2 HD Remaster | `0100BC300CB48000` | 无(v0) | Profile present; not verified on a phone |
+| Catherine: Full Body | `0100BF00112C0000` | 1.0.1a (v131072) | Profile present; not verified on a phone |
+| Donkey Kong Country: Tropical Freeze | `0100C1F0051B6000` | 1.0.2 (v131072) | Profile present; not verified on a phone |
+| ROMANCE OF THE THREE KINGDOMS 8 REMAKE | `0100C2A01A730000` | 1.1.3 (v851968) | Playable on an iPhone with a controller (upstream) |
+| Balatro | `0100CD801CE5E000` | 1.1.3 (v851968) | Playable on an iPhone (upstream) |
+| FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition | `0100CE4010AAC000` | 1.0.3 (v196608) | Profile present; not verified on a phone |
+| Silver Pines | `0100D5B026844000` | 无(v0) | Profile present; not verified on a phone |
+| Rhythm Heaven Groove | `0100D9F01D474000` | 无(v0) | Profile present; not verified on a phone |
+| Luigi's Mansion 3 | `0100DCA0064A6000` | 1.4.0 (v327680) | Playable on an iPhone (upstream) |
+| Patrick's Parabox | `0100E44016C22000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
+| Stardew Valley | `0100E65002BB8000` | 1.6.15.13 (v1310720) | Playable on an iPhone (upstream) |
+| Xenoblade Chronicles 2 | `0100E95004038000` | 2.1.0 (v983040) | Profile present; not verified on a phone |
+| Paper Mario: The Thousand-Year Door | `0100ECD018EBE000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
+| The Legend of Zelda: Tears of the Kingdom | `0100F2C0115B6000` | 1.4.3 (v720896) | **Verified here** — builds, installs and runs on an iPhone; 304,243 files into 127 archive shards, byte-verified |
+| Pokémon Legends: Z-A | `0100F43008C44000` | 2.0.2 (v393216) | Profile present; not verified on a phone |
+| Brain Memory Training Academy | `0100F5D01DA3A000` | 无(v0) | Profile present; not verified on a phone |
+| Super Mario Galaxy 2 | `0100FD8022DAA000` | 1.4.0 (v393216) | Profile present; not verified on a phone |
+| Xenoblade Chronicles: Definitive Edition | `0100FF500E34A000` | 1.1.2 (v196608) | Profile present; not verified on a phone |
+
+## Verified on
+
+- **Tears of the Kingdom** (0100F2C0115B6000, v1.0.0 + update 1.4.3): 304,243 files packed into 127
+ files; all 304,243 byte-compared against the source (`verify: OK`); the game runs from the archive
+ on macOS (1,905 frames at 30 fps).
+- **Hades II** (0100A00019DE0000, base + update 1.0.137848): 5,258 files packed into 33 files,
+ byte-compare OK, and the game runs from the archive on macOS (2,100 frames, 1,772 archive reads).
+ The update needs no special handling: `nx_extract` already layers the update NCA over the base
+ with `OpenFileSystemWithPatch`, so the extracted RomFS — and therefore the archive — is the merge.
+ **Playable on an iPhone** (12 GB device, AltStore Classic 2.3) once the memory entitlement is in
+ effect — see below.
+- The C reader walks all 304,243 Tears of the Kingdom files and 2,667 directories in 7.6 s.
+
+**The jetsam budget is the limit on big titles, and it can be raised.** Without
+`com.apple.developer.kernel.increased-memory-limit` an iPhone gives this app ~3,375 MB (measured on
+a 12 GB device: Tears of the Kingdom was killed entering the world map at 3,342 MB resident with
+33 MB of headroom; lowering the render scale to 0.5 did not change it, so the limit is the guest
+heap, not the GPU). The app requests the entitlement and `build_ipa.sh` embeds it in a placeholder
+ad-hoc signature — an unsigned binary has no signature for a sideloader to read entitlements from,
+so without that step the request would be lost. **AltStore Classic 2.2+**, **Impactor** and **Xcode
+with a Personal Team** keep it; **SideStore** with a free Apple ID needs a one-time App ID fix;
+**Sideloadly** does not. See [dm/ios/ENTITLEMENTS.md](dm/ios/ENTITLEMENTS.md) for the steps and how
+to tell from `Documents/log.txt` (resident + headroom: ~3,375 MB = not in effect, 6–8 GB = it is).
+
diff --git a/GAMES.zh-CN.md b/GAMES.zh-CN.md
new file mode 100644
index 00000000..f29192e7
--- /dev/null
+++ b/GAMES.zh-CN.md
@@ -0,0 +1,145 @@
+# 游戏
+
+本 fork 有 profile 的全部游戏,以及每款需要的更新包。玩家主页是 [README.zh-CN.md](README.zh-CN.md);[dm/games/README.md](dm/games/README.md)(英文)是引擎对每款游戏的笔记。截图和 IPA 大小在英文页的[图库](GAMES.md#gallery)里。English: [GAMES.md](GAMES.md).
+
+## 实测游戏
+
+**3 款在本 fork 完整验证**(构建 → 安装 → 真机可玩)、**45 款上游报告可玩**、**共 94 个 profile**。
+每款游戏需要的精确更新版本见[完整表格](#profile-列表)。
+
+| 游戏 | 本 fork 验证 | 备注 |
+|---|---|---|
+| **塞尔达传说:王国之泪** | ✅ | 304,243 个文件 → 127 片,逐字节校验 |
+| **Hades II** | ✅ | 33 个文件的归档 |
+| **集合啦!动物森友会** | ✅ | 103,645 个文件 → 72 片,流畅运行 |
+
+## Profile 列表
+
+本仓库自带 94 个游戏 profile。profile 决定了一个游戏能不能构建——build ID、内存布局、
+shader 表、每个游戏各自的开关;本 fork 在此基础上加了 RomFS 归档层,让大体积游戏能装得下。
+
+「需要的更新包」就是构建时严格校验的版本:更新包 NSP 的显示版本必须与 profile 注册的 build 一致
+(本体自身的版本无所谓——更新会叠加在本体上)。「无(v0)」= 只需本体。
+
+| 游戏 | Title ID | 需要的更新包 | 状态 |
+|---|---|---|---|
+| 超级马力欧 奥德赛 | `0100000000010000` | 1.4.1 (v393216) | 上游报告 iPhone 可玩 |
+| 宝可梦 晶灿钻石 | `0100000011D90000` | 1.3.0 (v393216) | 上游报告 iPhone 可玩 |
+| 逆转检察官 1&2 御剑精选集 | `010005501E68C000` | 1.0.0.2 (v131072) | 有 profile,未在手机上验证 |
+| 空洞骑士:丝之歌 | `010013C00E930000` | 1.0.30000 (v655360) | 有 profile,未在手机上验证 |
+| 数码宝贝物语 网络侦探 骇客追忆 | `010014E00DB56000` | 1.0.3 (v196608) | 有 profile,未在手机上验证 |
+| 超级马力欧兄弟 惊奇 | `010015100B514000` | 1.2.1 (v327680) | 上游报告 iPhone 可玩 |
+| 马力欧卡丁车 8 豪华版 | `0100152000022000` | 4.0.0 (v1441792) | 上游报告 iPhone 可玩 |
+| 人狼村之谜 | `010020400E1C2000` | 无(v0) | 有 profile,未在手机上验证 |
+| ANIMAL WELL | `010020D01AD24000` | 1.0.10 (v655360) | 上游报告 iPhone 可玩 |
+| 超级马力欧 3D世界 + 狂怒世界 | `010028600EBDA000` | 1.2.2 (v262144) | 上游报告 iPhone 可玩 |
+| 幽灵诡计 幻影侦探 | `010029B018432000` | 无(v0) | 上游报告 iPhone 可玩 |
+| 塞尔达无双 灾厄启示录 | `01002B00111A2000` | 1.3.0 (v327680) | 上游报告 iPhone 可玩 |
+| 蔚蓝 | `01002B30028F6000` | 1.4.1.1 (v589824) | 有 profile,未在手机上验证 |
+| 高级战争 1+2 重制版 | `0100300012F2A000` | 无(v0) | 上游报告 iPhone 可玩 |
+| 马力欧 + 疯狂兔子 星愿 | `0100317013770000` | 1.6.2225577 (v393216) | 有 profile,未在手机上验证 |
+| Return of the Obra Dinn | `010032E00E6E2000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
+| 太阁立志传 V DX | `0100346017304000` | 1.1.1 (v131072) | 上游报告 iPhone 触屏可玩 |
+| 大逆转裁判 1&2 成步堂龙之介的冒险 | `010036E00FB20000` | 无(v0) | 上游报告 iPhone 可玩 |
+| 最终幻想 战略版 伊瓦利斯战记 | `010038B015560000` | 1.4.0 (v393216) | 有 profile,未在手机上验证 |
+| 十三机兵防卫圈 | `01003FC01670C000` | 1.10 (v65536) | 上游报告 iPhone 可玩 |
+| Blasphemous 2 | `010040801A4C8000` | 1.0.8 (v524288) | 有 profile,未在手机上验证 |
+| 13 Sentinels: Aegis Rim (Japan) | `010045C014650000` | 无(v0) | 有 profile,未在手机上验证 |
+| 猎天使魔女 3 | `01004A4010FEA000` | 1.2.0 (v131072) | 上游报告 iPhone 可玩 |
+| 黑暗之魂 重制版 | `01004AB00A260000` | 1.0.3 (v196608) | 有 profile,未在手机上验证 |
+| 星之卡比 探索发现 | `01004D300C5AE000` | 1.1.0 (v65536) | 有 profile,未在手机上验证 |
+| 怪物火车 2 | `010051701FB46000` | 1.1.1 (v131072) | 上游报告 iPhone 可玩 |
+| 歧路旅人 0 | `01005270232F2000` | 1.0.5 (v327680) | 有 profile,未在手机上验证 |
+| 哈迪斯 | `0100535012974000` | 1.0.38233 (v589824) | 上游报告 iPhone 可玩 |
+| Unicorn Overlord (Asia) | `010054B01AD92000` | 1.05 (v262144) | 有 profile,未在手机上验证 |
+| 火焰纹章 风花雪月 | `010055D009F78000` | 1.2.0 (v327680) | 上游报告 iPhone 可玩 |
+| 尼尔 自动人形 寄叶终结版 | `010056B015FE8000` | 1.0.3 (v131072) | 上游报告 iPhone 可玩 |
+| 歧路旅人 | `010057D006492000` | 1.0.5 (v327680) | 有 profile,未在手机上验证 |
+| 女神异闻录 5 皇家版 | `01005CA01580E000` | 1.0.2 (v65536) | 上游报告 iPhone 可玩 |
+| 耀西的手工世界 | `01006000040C2000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
+| 最终幻想 共鸣 | `0100606026F12000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
+| 脑锻炼 大人的 Nintendo Switch 训练 | `0100620012D6E000` | 1.2.0 (v131072) | 有 profile,未在手机上验证 |
+| Persona 4 Golden | `010062B01525C000` | 1.0.2 (v131072) | 有 profile,未在手机上验证 |
+| Mario + Rabbids Kingdom Battle | `010067300059A000` | 1.9.589692 (v589824) | 有 profile,未在手机上验证 |
+| 圣兽之王 | `010069401ADB8000` | 1.05 (v262144) | 有 profile,未在手机上验证 |
+| Blasphemous | `0100698009C6E000` | 1.0.8 (v524288) | 有 profile,未在手机上验证 |
+| 真·女神转生 V Vengeance | `010069C01AB82000` | 1.0.3 (v196608) | 上游报告 iPhone 可玩 |
+| 任天堂明星大乱斗 特别版 | `01006A800016E000` | 13.0.5 (v2031616) | 上游报告 iPhone 可玩 |
+| 塞尔达传说 织梦岛 | `01006BB00C6F0000` | 1.1.0 (v131072) | 上游报告 iPhone 可玩 |
+| 勇者斗恶龙 XI S 寻觅逝去的时光 决定版 | `01006C300E9F0000` | 1.0.4 (v262144) | 有 profile,未在手机上验证 |
+| 集合啦!动物森友会 | `01006F8002326000` | 3.0.3 (v2228224) | **本 fork 已验证** —— 构建、安装、在 iPhone 上流畅运行;103,645 个文件归档成 72 片 |
+| AI 梦境档案 涅槃肇始 | `0100713016CCC000` | 1.0.2 (v131072) | 上游报告 iPhone 可玩 |
+| 异界锁链 | `01007300020FA000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
+| 异度神剑 3 | `010074F013262000` | 2.2.1 (v720896) | 有 profile,未在手机上验证 |
+| 猎天使魔女 | `010076F0049A2000` | 1.1 (v65536) | 上游报告 iPhone 可玩 |
+| 猎天使魔女 2 | `01007960049A0000` | 1.2 (v131072) | 上游报告 iPhone 可玩 |
+| 传送门 | `01007BB017812000` | 1.0.3 (v196608) | 上游报告 iPhone 可玩 |
+| 塞尔达传说 旷野之息 | `01007EF00011E000` | 1.9.0 (v1114112) | 上游报告 iPhone 可玩 |
+| BALL x PIT | `010086A022444000` | 1.293 (v393216) | 上游报告 iPhone 可玩 |
+| AI 梦境档案 | `010089B00D09C000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
+| 命运石之门 RE:BOOT | `01008BC024FDE000` | 1.0.3 (v131072) | 有 profile,未在手机上验证 |
+| 星之海 | `01008C0016544000` | 2.0.59001 (v786432) | 上游报告 iPhone 可玩 |
+| 塞尔达传说 智慧的再现 | `01008CF01BAAC000` | 1.1.0 (v196608) | 上游报告 iPhone 可玩 |
+| 十三机兵防卫圈(亚洲版) | `01008D7016438000` | 无(v0) | 上游报告 iPhone 可玩 |
+| 宝可梦 盾 | `01008DB008C2C000` | 1.3.2 (v458752) | 上游报告 iPhone 可玩 |
+| 密特罗德 生存恐惧 | `010093801237C000` | 2.1.0 (v327680) | 上游报告 iPhone 可玩 |
+| 超级马力欧 银河 | `010099C022B96000` | 1.3.1 (v327680) | 上游报告 iPhone 可玩 |
+| 奇诺比奥队长 宝物追踪 | `01009BF0072D4000` | 1.4.2 (v393216) | 有 profile,未在手机上验证 |
+| 大金刚国度 归乡 HD | `01009D901BC56000` | 1.1.0 (v65536) | 有 profile,未在手机上验证 |
+| 哈迪斯 II | `0100A00019DE0000` | 1.0.137848 (v1) | **本 fork 已验证** —— 构建、安装、在 iPhone 上运行;33 个文件的归档 |
+| 歧路旅人 II | `0100A3501946E000` | 1.1.1 (v131072) | 上游报告 iPhone 可玩 |
+| Pokémon Scarlet | `0100A3D008C5C000` | 无(v0) | 有 profile,未在手机上验证 |
+| 茶杯头 | `0100A5C00D162000` | 1.3.7 (v655360) | 有 profile,未在手机上验证 |
+| 火焰纹章 结合 | `0100A6301214E000` | 2.0.0 (v327680) | 上游报告 iPhone 可玩 |
+| Absolum | `0100A83022A22000` | 1.1.1 (v393216) | 有 profile,未在手机上验证 |
+| 勇者斗恶龙 VII 重制版 | `0100A9D01C446000` | 1.2.0 (v131072) | 有 profile,未在手机上验证 |
+| 宝可梦 剑 | `0100ABF008968000` | 1.3.2 (v458752) | 上游报告 iPhone 可玩 |
+| 怪物猎人 崛起 | `0100B04011742000` | 16.0.2 (v2228224) | 有 profile,未在手机上验证 |
+| 皮克敏 4 | `0100B7C00933A000` | 1.1.1 (v262144) | 上游报告 iPhone 可玩 |
+| FINAL FANTASY RESONANCE (Asian release) | `0100B8A026F14000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
+| NieR:Automata The End of YoRHa Edition | `0100B8E016F76000` | 1.0.3 (v131072) | 有 profile,未在手机上验证 |
+| 马力欧 VS 大金刚 | `0100B99019412000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
+| FINAL FANTASY X/X-2 HD Remaster | `0100BC300CB48000` | 无(v0) | 有 profile,未在手机上验证 |
+| 凯瑟琳 浓郁口感 | `0100BF00112C0000` | 1.0.1a (v131072) | 有 profile,未在手机上验证 |
+| 大金刚国度 热带冻结 | `0100C1F0051B6000` | 1.0.2 (v131072) | 有 profile,未在手机上验证 |
+| 三国志 8 REMAKE | `0100C2A01A730000` | 1.1.3 (v851968) | 上游报告 iPhone 可玩(需手柄) |
+| 小丑牌 | `0100CD801CE5E000` | 1.1.3 (v851968) | 上游报告 iPhone 可玩 |
+| FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition | `0100CE4010AAC000` | 1.0.3 (v196608) | 有 profile,未在手机上验证 |
+| Silver Pines | `0100D5B026844000` | 无(v0) | 有 profile,未在手机上验证 |
+| 节奏天国 Groove | `0100D9F01D474000` | 无(v0) | 有 profile,未在手机上验证 |
+| 路易吉洋馆 3 | `0100DCA0064A6000` | 1.4.0 (v327680) | 上游报告 iPhone 可玩 |
+| Patrick's Parabox | `0100E44016C22000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
+| 星露谷物语 | `0100E65002BB8000` | 1.6.15.13 (v1310720) | 上游报告 iPhone 可玩 |
+| Xenoblade Chronicles 2 | `0100E95004038000` | 2.1.0 (v983040) | 有 profile,未在手机上验证 |
+| 纸片马力欧 千年之门 | `0100ECD018EBE000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
+| 塞尔达传说 王国之泪 | `0100F2C0115B6000` | 1.4.3 (v720896) | **本 fork 已验证** —— 构建、安装、在 iPhone 上运行;304,243 个文件归档成 127 片,逐字节校验通过 |
+| 宝可梦传说 Z-A | `0100F43008C44000` | 2.0.2 (v393216) | 有 profile,未在手机上验证 |
+| 脑力记忆训练学院 | `0100F5D01DA3A000` | 无(v0) | 有 profile,未在手机上验证 |
+| 超级马力欧 银河 2 | `0100FD8022DAA000` | 1.4.0 (v393216) | 有 profile,未在手机上验证 |
+| Xenoblade Chronicles: Definitive Edition | `0100FF500E34A000` | 1.1.2 (v196608) | 有 profile,未在手机上验证 |
+
+「本 fork 已验证」表示完整走通了整条链路:构建、装到 iPhone、运行,归档还逐字节比对过源文件。
+「上游报告 iPhone 可玩」是上游项目的结果,本 fork 未重新测试。只有 profile 不保证游戏能启动——
+游戏所需的宿主改动属于上游工作,本 fork 跟随上游。
+
+## 验证情况
+
+- **《王国之泪》**(0100F2C0115B6000,v1.0.0 + 更新 1.4.3):304,243 个文件打成 127 个文件;
+ 304,243 个文件全部与源目录逐字节比对通过(`verify: OK`);游戏从归档正常运行于 macOS
+ (30 fps,1,905 帧)。
+- **《哈迪斯 2》**(0100A00019DE0000,本体 + 更新 1.0.137848):5,258 个文件打成 33 个文件,
+ 逐字节比对通过,游戏从归档正常运行于 macOS(2,100 帧,1,772 次归档读取)。更新包无需特殊
+ 处理:`nx_extract` 本来就用 `OpenFileSystemWithPatch` 把更新层叠在本体上,解出的 RomFS
+ ——也就是归档——就是合并结果。**在 iPhone 上可玩**(12 GB 设备,AltStore Classic 2.3),
+ 前提是内存 entitlement 生效——见下。
+- C 读取层遍历全部 304,243 个《王国之泪》文件、2,667 个目录,耗时 7.6 秒。
+
+**jetsam 预算是大体积游戏的限制,而它是可以提高的。** 没有
+`com.apple.developer.kernel.increased-memory-limit` 时,iPhone 给这个 App 约 3,375 MB(12 GB
+设备实测:《王国之泪》进大地图时被杀,常驻 3,342 MB、余量 33 MB;渲染缩放降到 0.5 无改善,
+说明瓶颈在 guest 堆而不是 GPU)。App 请求了这个 entitlement,`build_ipa.sh` 把它嵌进占位用的
+ad-hoc 签名——无签名的二进制没有可供侧载工具读取 entitlement 的签名,不做这一步请求就会丢失。
+**AltStore Classic 2.2+**、**Impactor** 和 **Xcode + Personal Team** 会保留它;**SideStore**
+配合免费 Apple ID 需要对 App ID 做一次性修复;**Sideloadly** 不会。步骤和判断方法(log.txt 里
+resident + headroom:约 3,375 MB = 未生效,6–8 GB = 已生效)见
+[dm/ios/ENTITLEMENTS.md](dm/ios/ENTITLEMENTS.md)。
diff --git a/README.md b/README.md
index 2c5a01ab..cf7d778c 100644
--- a/README.md
+++ b/README.md
@@ -27,743 +27,132 @@
- **Saves, freed** — every Mac game's saves and logs live together in the game library folder.
- **iPhone game data, freed** — the game's `.img` data finally loads straight from an external drive on iOS.
-A macOS app takes your own game dumps and does the whole thing with a few clicks — unpack, rewrite
-the game's code for Apple silicon, translate its shaders to Metal, pack a slim IPA plus a sharded
-RomFS archive that a phone can actually install (even a 16 GB game), and then tells you the three
-steps to get it onto the device.
-
-**中文用户请看这里**:[简体中文 README](README.zh-CN.md)
-
-**Formerly `nxnative-romfs-archive`** — old links redirect here.
+Every release is in the [changelog](CHANGELOG.md). **中文用户请看这里**:[简体中文 README](README.zh-CN.md). **Formerly `nxnative-romfs-archive`**: old links redirect here.
</div>
---
-## What this is
-
-This is a community fork of **[nxnative](https://github.com/seedds/nxnative)** — the NSO rewriter,
-the Horizon host, the NVN-on-Metal layer and the per-game profiles are upstream work, and this fork
-follows upstream automatically. What it adds:
-
-- **A GUI app for everyone.** [nxnative for Mac](frontend/README.md) is a game library and a
- build tool in one window: pick a game's folder, choose *This Mac* or *iPhone / iPad*, and the build
- runs with live progress from the script's own counts. Finished Mac games appear in the library with
- their eShop key art, start with **Play**, and keep per-game launch options (the iPhone launcher's
- settings: frame rate, console mode, upscaling, …). Device dependencies are detected and installed
- with one click; English or Chinese, following the system. **It also downloads the repository for you
- and updates itself** — no git knowledge needed.
-- **A RomFS archive.** Tears of the Kingdom's 304,243 files become 127 shards — the difference
- between an iOS install that fails with `PackageExtractionFailed` and one that works (details
- below).
-- **⏸️ Interrupted builds resume.** Extraction, DLC, module rewrite and shader compilation are kept
- and reused: a failed or stopped build continues where it left off, and a rebuild after a tweak
- reuses everything unchanged (upstream's pipeline; the app drives it with its own build folder).
-- **Follows upstream automatically.** A daily GitHub Actions job re-applies the fork's features
- onto upstream's tree, verifies the result (script parse, archive reader test, a macOS host build)
- and pushes — or opens an issue with the log when a patch no longer fits.
-- **94 game profiles** with the required update version listed per game. Three are verified end
- to end on this fork; 45 are reported playable on an iPhone upstream.
-
----
-
-## Games gallery
-
-<!-- gallery: written by dm/tools/docs_gallery.py from docs/images/gallery.tsv; change the table, then run it -->
-<table>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/mario-kart-8-deluxe.jpg" width="256" alt="Mario Kart 8 Deluxe"><br><sub><b>Mario Kart 8 Deluxe</b><br>~11.9 GB · no Mii heads</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/mario-vs-donkey-kong.jpg" width="256" alt="Mario vs. Donkey Kong"><br><sub><b>Mario vs. Donkey Kong</b><br>~1.6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/paper-mario-the-thousand-year-door.jpg" width="256" alt="Paper Mario: The Thousand-Year Door"><br><sub><b>Paper Mario: The Thousand-Year Door</b><br>~5 GB · 60 fps with 1.0.1</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-3d-world.jpg" width="256" alt="Super Mario 3D World + Bowser's Fury"><br><sub><b>Super Mario 3D World + Bowser's Fury</b><br>~3 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-bros-wonder.jpg" width="256" alt="Super Mario Bros. Wonder"><br><sub><b>Super Mario Bros. Wonder</b><br>~4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-galaxy.jpg" width="256" alt="Super Mario Galaxy"><br><sub><b>Super Mario Galaxy</b><br>~3 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-galaxy-2.jpg" width="256" alt="Super Mario Galaxy 2"><br><sub><b>Super Mario Galaxy 2</b><br>~3 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/super-mario-odyssey.jpg" width="256" alt="Super Mario Odyssey"><br><sub><b>Super Mario Odyssey</b><br>~6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/zelda-breath-of-the-wild.jpg" width="256" alt="The Legend of Zelda: Breath of the Wild"><br><sub><b>The Legend of Zelda: Breath of the Wild</b><br>~16 GB · 60 fps with 1.9.0</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/zelda-links-awakening.jpg" width="256" alt="The Legend of Zelda: Link's Awakening"><br><sub><b>The Legend of Zelda: Link's Awakening</b><br>~6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/zelda-tears-of-the-kingdom.jpg" width="256" alt="The Legend of Zelda: Tears of the Kingdom"><br><sub><b>The Legend of Zelda: Tears of the Kingdom</b><br>~17 GB · 60 fps with 1.4.3</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/13-sentinels.jpg" width="256" alt="13 Sentinels: Aegis Rim"><br><sub><b>13 Sentinels: Aegis Rim</b><br>~5 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/absolum.jpg" width="256" alt="Absolum"><br><sub><b>Absolum</b><br>~2 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/ace-attorney-investigations.jpg" width="256" alt="Ace Attorney Investigations Collection"><br><sub><b>Ace Attorney Investigations Collection</b><br>~7 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/advance-wars-1-2-re-boot-camp.jpg" width="256" alt="Advance Wars 1+2: Re-Boot Camp"><br><sub><b>Advance Wars 1+2: Re-Boot Camp</b><br>~7.1 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/ai-the-somnium-files.jpg" width="256" alt="AI: THE SOMNIUM FILES"><br><sub><b>AI: THE SOMNIUM FILES</b><br>~8.3 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/ai-the-somnium-files-nirvana-initiative.jpg" width="256" alt="AI: THE SOMNIUM FILES - nirvanA Initiative"><br><sub><b>AI: THE SOMNIUM FILES - nirvanA Initiative</b><br>~11.6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/animal-crossing-new-horizons.jpg" width="256" alt="Animal Crossing: New Horizons"><br><sub><b>Animal Crossing: New Horizons</b><br>~10.5 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/animal-well.png" width="256" alt="ANIMAL WELL"><br><sub><b>ANIMAL WELL</b><br>~54 MB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/astral-chain.png" width="256" alt="ASTRAL CHAIN"><br><sub><b><a href="dm/games/01007300020FA000/README.md">ASTRAL CHAIN</a></b><br>~9.7 GB · 60 fps target with 1.0.1</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/balatro.jpg" width="256" alt="Balatro"><br><sub><b>Balatro</b><br>~82 MB · played by touch</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/ball-x-pit.jpg" width="256" alt="BALL x PIT"><br><sub><b>BALL x PIT</b><br>~1.1 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/bayonetta.jpg" width="256" alt="Bayonetta"><br><sub><b>Bayonetta</b><br>~8.8 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/bayonetta-2.jpg" width="256" alt="Bayonetta 2"><br><sub><b>Bayonetta 2</b><br>~12.5 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/bayonetta-3.jpg" width="256" alt="Bayonetta 3"><br><sub><b>Bayonetta 3</b><br>~14.2 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/big-brain-academy-brain-vs-brain.jpg" width="256" alt="Big Brain Academy: Brain vs. Brain"><br><sub><b>Big Brain Academy: Brain vs. Brain</b><br>~0.8 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/brain-memory-training-academy.jpg" width="256" alt="Brain Memory Training Academy"><br><sub><b>Brain Memory Training Academy</b><br>~0.1 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/captain-toad-treasure-tracker.jpg" width="256" alt="Captain Toad: Treasure Tracker"><br><sub><b>Captain Toad: Treasure Tracker</b><br>~2 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/catherine-full-body.jpg" width="256" alt="Catherine: Full Body"><br><sub><b>Catherine: Full Body</b><br>~14 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/celeste.jpg" width="256" alt="Celeste"><br><sub><b>Celeste</b><br>~0.9 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/cuphead.jpg" width="256" alt="Cuphead"><br><sub><b>Cuphead</b><br>~5 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/dark-souls-remastered-creation.jpg" width="256" alt="DARK SOULS: REMASTERED"><br><sub><b>DARK SOULS: REMASTERED</b><br>~4 GB · 60 fps with 1.0.3</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/digimon-story-cyber-sleuth.jpg" width="256" alt="Digimon Story Cyber Sleuth: Complete Edition"><br><sub><b>Digimon Story Cyber Sleuth: Complete Edition</b><br>~5 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/donkey-kong-country-tropical-freeze.jpg" width="256" alt="Donkey Kong Country: Tropical Freeze"><br><sub><b>Donkey Kong Country: Tropical Freeze</b><br>~7.3 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/dragon-quest-vii-reimagined.jpg" width="256" alt="DRAGON QUEST VII Reimagined"><br><sub><b>DRAGON QUEST VII Reimagined</b><br>~5.9 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/dragon-quest-xi-s.jpg" width="256" alt="DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition"><br><sub><b>DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition</b><br>~15 GB · 60 fps with 1.0.4</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-resonance.jpg" width="256" alt="FINAL FANTASY RESONANCE"><br><sub><b>FINAL FANTASY RESONANCE</b><br>~10 GB · 60 fps with 1.0.1</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-tactics.jpg" width="256" alt="FINAL FANTASY TACTICS - The Ivalice Chronicles"><br><sub><b>FINAL FANTASY TACTICS - The Ivalice Chronicles</b><br>~11 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/fire-emblem-engage.jpg" width="256" alt="Fire Emblem Engage"><br><sub><b>Fire Emblem Engage</b><br>~15 GB · 60 fps with 2.0.0</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/fire-emblem-three-houses.jpg" width="256" alt="Fire Emblem: Three Houses"><br><sub><b>Fire Emblem: Three Houses</b><br>~13 GB · 60 fps with 1.2.0</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/ghost-trick-phantom-detective.jpg" width="256" alt="Ghost Trick: Phantom Detective"><br><sub><b>Ghost Trick: Phantom Detective</b><br>~3 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/the-great-ace-attorney-chronicles.jpg" width="256" alt="The Great Ace Attorney Chronicles"><br><sub><b>The Great Ace Attorney Chronicles</b><br>~4 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/hades.jpg" width="256" alt="Hades"><br><sub><b>Hades</b><br>~4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/hades-ii.jpg" width="256" alt="Hades II"><br><sub><b>Hades II</b><br>~4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/hollow-knight-silksong.jpg" width="256" alt="Hollow Knight: Silksong"><br><sub><b>Hollow Knight: Silksong</b><br>~6.4 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/hyrule-warriors-age-of-calamity.jpg" width="256" alt="Hyrule Warriors: Age of Calamity"><br><sub><b>Hyrule Warriors: Age of Calamity</b><br>~15 GB · 60 fps with 1.3.0</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/kirby-and-the-forgotten-land.jpg" width="256" alt="Kirby and the Forgotten Land"><br><sub><b>Kirby and the Forgotten Land</b><br>~6.4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/luigis-mansion-3.jpg" width="256" alt="Luigi's Mansion 3"><br><sub><b>Luigi's Mansion 3</b><br>~7.5 GB · 60 fps with 1.4.0</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/metroid-dread.jpg" width="256" alt="Metroid Dread"><br><sub><b>Metroid Dread</b><br>~5 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/monster-hunter-rise.jpg" width="256" alt="Monster Hunter Rise"><br><sub><b>Monster Hunter Rise</b><br>~22 GB · 60 fps with 16.0.2</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/monster-train-2.jpg" width="256" alt="Monster Train 2"><br><sub><b>Monster Train 2</b><br>~1.6 GB · 60 fps with 1.1.1</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/octopath-traveler.jpg" width="256" alt="OCTOPATH TRAVELER"><br><sub><b>OCTOPATH TRAVELER</b><br>~3.6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/octopath-traveler-0.jpg" width="256" alt="Octopath Traveler 0"><br><sub><b>Octopath Traveler 0</b><br>~4 GB · 60 fps with 1.0.5</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/octopath-traveler-ii.jpg" width="256" alt="Octopath Traveler II"><br><sub><b>Octopath Traveler II</b><br>~5.9 GB · 60 fps with 1.1.1</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/patricks-parabox.jpg" width="256" alt="Patrick's Parabox"><br><sub><b>Patrick's Parabox</b><br>~0.2 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/persona-5-royal.jpg" width="256" alt="Persona 5 Royal"><br><sub><b>Persona 5 Royal</b><br>~14.9 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/pikmin-4.jpg" width="256" alt="Pikmin 4"><br><sub><b>Pikmin 4</b><br>~10.8 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-brilliant-diamond.jpg" width="256" alt="Pokémon Brilliant Diamond"><br><sub><b>Pokémon Brilliant Diamond</b><br>~4.6 GB · 60 fps with 1.3.0</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-legends-z-a.jpg" width="256" alt="Pokémon Legends: Z-A"><br><sub><b>Pokémon Legends: Z-A</b><br>~6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-scarlet.png" width="256" alt="Pokémon Scarlet"><br><sub><b>Pokémon Scarlet</b><br>~7.0 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-sword.jpg" width="256" alt="Pokémon Sword"><br><sub><b>Pokémon Sword</b><br>~12.4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-shield.jpg" width="256" alt="Pokémon Shield"><br><sub><b>Pokémon Shield</b><br>~12.4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/portal.jpg" width="256" alt="Portal"><br><sub><b>Portal</b><br>~2.6 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/raging-loop.jpg" width="256" alt="Raging Loop"><br><sub><b>Raging Loop</b><br>~0.9 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/rhythm-heaven-groove.jpg" width="256" alt="Rhythm Heaven Groove"><br><sub><b>Rhythm Heaven Groove</b><br>~3 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/romance-of-the-three-kingdoms-8-remake.jpg" width="256" alt="ROMANCE OF THE THREE KINGDOMS 8 REMAKE"><br><sub><b>ROMANCE OF THE THREE KINGDOMS 8 REMAKE</b><br>~16.8 GB · controller only</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/sea-of-stars.jpg" width="256" alt="Sea of Stars"><br><sub><b>Sea of Stars</b><br>~5.1 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/shin-megami-tensei-v-vengeance.jpg" width="256" alt="SHIN MEGAMI TENSEI V: Vengeance"><br><sub><b>SHIN MEGAMI TENSEI V: Vengeance</b><br>~14.6 GB · 60 fps with 1.0.3</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/stardew-valley.jpg" width="256" alt="Stardew Valley"><br><sub><b>Stardew Valley</b><br>~0.6 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/steins-gate-reboot.jpg" width="256" alt="STEINS;GATE RE:BOOT"><br><sub><b>STEINS;GATE RE:BOOT</b><br>~6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/super-smash-bros-ultimate.jpg" width="256" alt="Super Smash Bros. Ultimate"><br><sub><b>Super Smash Bros. Ultimate</b><br>~17.5 GB · offline</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/taiko-risshiden-v-dx.jpg" width="256" alt="Taiko Risshiden V DX"><br><sub><b>Taiko Risshiden V DX</b><br>~3.3 GB · Japanese · played by touch</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/unicorn-overlord.jpg" width="256" alt="Unicorn Overlord"><br><sub><b>Unicorn Overlord</b><br>~4 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/yoshis-crafted-world.jpg" width="256" alt="Yoshi's Crafted World"><br><sub><b><a href="dm/games/01006000040C2000/README.md">Yoshi's Crafted World</a></b><br>~6.1 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/nier-automata.png" width="256" alt="NieR:Automata The End of YoRHa Edition"><br><sub><b>NieR:Automata The End of YoRHa Edition</b><br>~10.9 GB · 60 fps with 1.0.3</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/zelda-echoes-of-wisdom.jpg" width="256" alt="The Legend of Zelda: Echoes of Wisdom"><br><sub><b>The Legend of Zelda: Echoes of Wisdom</b><br>~7.8 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/donkey-kong-country-returns-hd.png" width="256" alt="Donkey Kong Country Returns HD"><br><sub><b>Donkey Kong Country Returns HD</b><br>~11.6 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/mario-rabbids-sparks-of-hope.jpg" width="256" alt="Mario + Rabbids Sparks of Hope"><br><sub><b>Mario + Rabbids Sparks of Hope</b><br>~9.8 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/xenoblade-chronicles-2.jpg" width="256" alt="Xenoblade Chronicles 2"><br><sub><b>Xenoblade Chronicles 2</b><br>~17.1 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/xenoblade-chronicles-3.jpg" width="256" alt="Xenoblade Chronicles 3"><br><sub><b>Xenoblade Chronicles 3</b><br>~19.2 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-crystal-chronicles.jpg" width="256" alt="FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition"><br><sub><b>FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition</b></sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/return-of-the-obra-dinn.png" width="256" alt="Return of the Obra Dinn"><br><sub><b><a href="dm/games/010032E00E6E2000/README.md">Return of the Obra Dinn</a></b><br>~0.9 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/blasphemous-2.png" width="256" alt="Blasphemous 2"><br><sub><b><a href="dm/games/010040801A4C8000/README.md">Blasphemous 2</a></b><br>~1.5 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/silver-pines.jpg" width="256" alt="Silver Pines"><br><sub><b><a href="dm/games/0100D5B026844000/README.md">Silver Pines</a></b></sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/blasphemous.jpg" width="256" alt="Blasphemous"><br><sub><b><a href="dm/games/0100698009C6E000/README.md">Blasphemous</a></b><br>~0.9 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/final-fantasy-x-x2-hd-remaster.jpg" width="256" alt="FINAL FANTASY X/X-2 HD Remaster"><br><sub><b><a href="dm/games/0100BC300CB48000/README.md">FINAL FANTASY X/X-2 HD Remaster</a></b><br>~26.5 GB</sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/mario-rabbids-kingdom-battle.jpg" width="256" alt="Mario + Rabbids Kingdom Battle"><br><sub><b><a href="dm/games/010067300059A000/README.md">Mario + Rabbids Kingdom Battle</a></b><br>~5 GB</sub></td>
-</tr>
-<tr>
-<td align="center" valign="top" width="33%"><img src="docs/images/persona-4-golden.jpg" width="256" alt="Persona 4 Golden"><br><sub><b><a href="dm/games/010062B01525C000/README.md">Persona 4 Golden</a></b></sub></td>
-<td align="center" valign="top" width="33%"><img src="docs/images/xenoblade-chronicles-definitive-edition.jpg" width="256" alt="Xenoblade Chronicles: Definitive Edition"><br><sub><b><a href="dm/games/0100FF500E34A000/README.md">Xenoblade Chronicles: Definitive Edition</a></b><br>~13.2 GB</sub></td>
-<td></td>
-</tr>
-</table>
-<!-- end of gallery -->
-
-## Contents
-
-- [Features at a glance](#features-at-a-glance)
-- [Quick start](#quick-start)
-- [Supported games](#games) — the full table; [verified here](#verified-games) first
-- [How it works](#how-it-works)
-- [Update history](#update-history)
-- [Contributing shaders and game support](#contributing-shaders-and-game-support)
-- [Limitations](#limitations)
-- [Credits](#credits)
-- [Legal](#legal)
-
----
-
-## Features at a glance
-
-| Feature | Notes |
-|---|---|
-| **One-click build** | Pick your files, press build. No command line, ever |
-| **RomFS archiving** | 300,000 files → ~100 shards, so a 16 GB game installs |
-| **Resumable builds** | A stopped build continues; unchanged work is reused |
-| **94 game profiles** | Each with the exact update version it needs |
-| **Install guide** | The three steps to the phone, with Reveal-in-Finder |
-| **Bilingual** | English / 简体中文, picked from the device language |
-| **Self-installing** | Downloads the repository and updates itself |
-| **Auto upstream sync** | Daily, verified, with a fallback issue if a patch breaks |
-
----
-
-## Quick start
-
-1. **Download the app** — [latest release](https://github.com/LNPANDY/NX2Apple/releases/latest)
- (`NS-Port-Builder-macOS-arm64.zip`). Unzip, right-click → Open the first time.
-2. **Let it fetch the project** — the repository group has a **Download repository** button (a
- shallow clone into `~/NX2Apple`). Slow GitHub? The panel shows the manual ZIP route.
-3. **Pick your game files** — base game, update, DLC and `prod.keys`, separately or as one folder.
-4. **Press build**, then follow the three install steps it prints.
-
-> Requirements: an Apple Silicon Mac; the launcher opens on macOS 13 or later. Building needs Xcode with
-> the iOS SDK, and NVN games need [Xcode](https://apps.apple.com/app/xcode/id497799835) 27.1 (macOS 26.6
-> or later) unless built with `--allow-other-metal`. The app carries its own build tools and
-> Python, so no Homebrew and no Python install; .NET SDK 10 is the one tool it still installs for you.
-> The app's dependency panel detects each requirement and installs what it can. Your own game files and
-> `prod.keys` — nothing of a game is bundled.
-
----
-
-## Verified games
-
-**3 verified end to end on this fork** (build → install → play on a real iPhone), **29 reported
-playable upstream**, **58 profiles** in total. The full table with the exact update version each
-game needs is [below](#games).
-
-| Game | Verified here | Notes |
-|---|---|---|
-| **Tears of the Kingdom** | ✅ | 304,243 files → 127 archive shards, byte-verified |
-| **Hades II** | ✅ | 33-file archive |
-| **Animal Crossing: New Horizons** | ✅ | 103,645 files → 72 shards, runs smoothly |
-
----
-
-## How it works
-
-### The GUI front end
-
-`frontend/` is a macOS app that does steps 2–5 below with a window instead of a terminal, for
-people who would rather not read a build log: four inputs picked separately (base game, update,
-DLC, `prod.keys`), a dependency panel that detects and installs what is missing, the script's real
-stage list with live percentages, and the archive shards produced at the end.
-
-<details>
-<summary><b>The problem, the fix, and the archive format (click to expand)</b></summary>
-
-### The problem
-
-A RomFS like Tears of the Kingdom's is **304,243 files / 15.9 GiB**. Two things break:
-
-- **The IPA does not install.** A 16.6 GB package with 372,660 entries fails on iOS with
- `PackageExtractionFailed (Could not extract archive)`. The install daemon's extractor gives up —
- one directory holds 75,941 files and the ZIP64 central directory starts at 17.8 GB.
-- **Copying the tree to the phone takes hours.** The Files app and Finder do one round trip per
- file. 300,000 small files also produce roughly 1 GB of filesystem block overhead.
-
-Packing the tree into ~100 shard files solves both: the package stays small, and the game files move
-to the phone as one folder of large files.
-
-### The fix
-
-A **ROMFSARC** archive: one index file plus N shard files.
-
-```
-romfs.idx 28 MB header, name pool, file table, directory table
-romfs.00 ... .125 126 shards, 200 MiB each, source bytes verbatim
-```
-
-Measured on Tears of the Kingdom (v1.0.0 + 1.4.3):
-
-| | Plain RomFS | ROMFSARC |
-|---|---|---|
-| Files | 304,243 | **127** |
-| Largest directory | 75,941 entries | 126 shards, none over 200 MiB |
-| IPA with the game inside | 16.6 GB (fails to install) | — |
-| Slim IPA (the default, no RomFS inside) | — | **743 MB, installs** |
-| Copy to the phone | hours | one folder of 127 files |
+## What NX2Apple is
-Path lookup is a binary search over the sorted file table; a directory listing walks one contiguous
-child range. The index is `mmap`ed, shards are opened lazily, and reads go straight to `pread` on
-the shard, so the page cache still works.
+NX2Apple runs Nintendo Switch games on your Mac and iPhone from your own game dumps. It is not an
+emulator: the game's own code runs natively on Apple silicon, and Metal draws it. A Mac app, the
+launcher, does the build in a few clicks (unpack, rewrite, translate the shaders, pack) and then
+keeps your games in a library you start with **Play**, the way a Switch does.
-</details>
+<img src="frontend/screenshots/launcher-library.webp" width="100%" alt="The launcher: a library of built games, one build in progress">
-### The GUI front end
+It is a community fork of **[nxnative](https://github.com/seedds/nxnative)**, which does the actual
+work (the code rewriter, the Horizon host, NVN on Metal and every game's profile); this fork adds the
+launcher and a short list of patches, and follows nxnative every day.
-`frontend/` is a macOS app that does the build steps with a window instead of a terminal, for
-people who would rather not read a build log: a library of your games with their key art, a build
-page (one game folder, or base game, update, DLC and `prod.keys` picked separately; Mac or iPhone),
-the script's real stage list with live counts and time left, per-game launch options for Mac builds,
-and a settings page that detects and installs what is missing.
+## Requirements
-<img src="frontend/screenshots/launcher-library.webp" width="100%" alt="nxnative for Mac: the library, with a build in progress">
+- **An Apple silicon Mac.** The launcher opens on **macOS 13 or later**. Building needs Xcode with
+ the iOS SDK, and NVN games need [Xcode](https://apps.apple.com/app/xcode/id497799835) 27.1 (macOS 26.6
+ or later) unless built with `--allow-other-metal`.
+- **Your own game dumps** (NSP or XCI) and **your own `prod.keys`** from your own console. Nothing is
+ bundled, downloaded or looked up for you. The same `prod.keys` opens every one of your games; a
+ current dump covers all retail titles.
+- For an iPhone: iOS 26 or later and a recent phone. Older devices are untested.
-<details>
-<summary>Build page and launch options</summary>
+The app carries its own build tools and Python, so no Homebrew and no Python install; the .NET SDK 10
+is the one tool it still installs for you. The launcher's dependency page checks each requirement and
+installs what it can with one click.
-<img src="frontend/screenshots/launcher-build.webp" width="66%" alt="Build game"> <img src="frontend/screenshots/launcher-launch-options.webp" width="32%" alt="Launch options">
+## Install
-</details>
+1. **Download the app**: `NS-Port-Builder-macOS-arm64.zip` from the
+ [latest release](https://github.com/LNPANDY/NX2Apple/releases/latest). Unzip it.
+2. **Open it once with right-click, then Open.** The app is not signed with a paid Apple developer
+ certificate, so macOS asks before the first start; after that it opens normally.
+3. **Follow the setup.** The launcher fetches the project it builds with (a **Download repository**
+ button on the setup page, a shallow clone into `~/NX2Apple`; if GitHub is slow, the page shows the
+ manual ZIP route), checks the tools above and updates itself later. You never need git.
+4. **Build a game.** Pick the game's folder (or its base game, update, DLC and `prod.keys` one by
+ one), choose **This Mac** or **iPhone / iPad**, and press build. The page shows the real stages and
+ the time left, and a stopped build continues where it left off. An iPhone build ends with the three
+ steps to put the app on the phone.
-```bash
-cd frontend && swift run # or double-click frontend/nxnative.app
-```
-
-The interface is bilingual: it follows the system language (Chinese for any Chinese variant, **English
-for everything else**).
-
-It runs the same scripts the command line does, so everything below still applies; see
-[frontend/README.md](frontend/README.md). The prebuilt app, and the release notes in English and
-Chinese (including which games are verified), are on the
-[releases page](https://github.com/LNPANDY/NX2Apple/releases) and in
-[docs/RELEASE_NOTES.md](docs/RELEASE_NOTES.md).
-
-## Update history
-
-Newest first. The fork follows upstream daily, so its game list and host fixes arrive automatically.
-
-| Date | Version | What changed |
-|---|---|---|
-| 2026-10-27 | v0.4.9 | **The library follows the folder**: a Mac game's saves and log live beside the .app and migrate from `~/Library` on first run; **the iPhone's game data can live anywhere** (Files-app picker, remembered); **all eight tracker features landed** (#77–#84: key pre-check, drag & drop, build notifications, older-tools flag, free space, saves between Mac and device, copy diagnostics, controller layouts); Windows: Chinese UI fixed, the Metal probe works under a Chinese user name, the failed-install crash is gone, the Vulkan SDK is found by itself |
-| 2026-10-27 | v0.4.8 | **The Mac launcher becomes usable**: install an iPhone build on a paired device (#28), a controller drives the whole launcher (#56), launch options split into basic and advanced (#54) with Display mode and the render scale in real pixels (#55) and a Mods section through `DM_ROMFS_OVERLAY` (#57), keys and controller buttons remappable (#39); **the build tools update when the app opens** (#60) and **a new version says what it changes** before installing; fixes: every rewrite of every game crashed (`patch_nso.py`'s `TEXT_LO` used before assignment, #59), the Mac app refused every build with "requires Python 3.12" (#53), a ROMs folder holding several games could not build any of them (#58), a failed build pointed at a log that was off screen (#52), a Chinese Windows showed an English interface, CI could not open issues |
-| 2026-10-27 | v0.4.7 | **94 game profiles** (+7: Octopath Traveler, Donkey Kong Country Returns HD, Donkey Kong Country: Tropical Freeze, Mario + Rabbids Sparks of Hope, Kirby and the Forgotten Land, Yoshi's Crafted World, Xenoblade Chronicles 3) from the daily sync; **one host binary, any game's memory layout** (runtime profiles — the foundation for the universal launcher, which has not been built yet); **the language toggle translates the whole interface**; **Xcode betas count** (the check asks xcode-select); a loud notice when an upstream update invalidates cached shaders; the output folder documented as the build cache's home; Windows front end: in-app Python 3.12, SDK clone past Windows' path-length limit, LLVM verified by compiling rather than --version, no more black console windows; rebuilding on an external exFAT work folder no longer crashes |
-| 2026-10-26 | v0.4.6 | **Windows app fixed against real hardware reports**: the missing .NET SDK row (it never appeared, so nothing could install it), no more black console windows stealing the foreground, download mirrors chosen by a speed probe (a 974 s LLVM download on a mainland connection), tools installed outside the app folder so updates stop deleting them, and repository checks that say what git is doing |
-| 2026-10-26 | v0.4.5 | **Mac app output** (a double-clickable .app from the same build); **A15/A16 and earlier devices** via CPU BC decode, as an app switch; per-game data folders (`Documents/games/<id>/`) so an external drive works; NRO header no longer scanned as code; the nightly sync can no longer fail silently |
-| 2026-10-26 | v0.4.4 | **Fixes a build failure that hit every app build in v0.4.3** (`work` read before it was assigned); 72 games (+3) |
-| 2026-10-26 | v0.4.3 | NSZ/XCZ dumps work out of the box; a fresh Xcode now reports its missing iOS SDK; three environment traps closed |
-| 2026-10-25 | v0.4.2 | The app downloads and updates the repository itself, and updates itself; 58 games (+10); save-loading deadlock fixed; NuGet failures self-heal |
-| 2026-10-24 | v0.4.1 | Animal Crossing: New Horizons verified on an iPhone (103,645 files → 72 shards); archive packing reuses unchanged work |
-| 2026-10-23 | v0.4.0 | The archive folder is copy-ready with an install guide; dependency list collapses; per-game update versions in the table; renamed to NX2Apple |
-| 2026-10-23 | v0.3.1 | Fixes for Homebrew Python 3.15 and `DOTNET_ROOT` (#1, #2) |
-| 2026-10-22 | v0.3.0 | App icon, 46 games |
-| 2026-10-21 | v0.2.1 | Python 3.9 build fix |
-| 2026-10-20 | v0.2.0 | Bilingual (English / 中文) |
-| 2026-10-20 | v0.1.0 | First release: GUI front end, RomFS archiving |
-
-## Contributing shaders and game support
-
-Each new game needs its own bring-up: a profile (build IDs, memory layout, texture slots), a shader
-reader if it packs them in a form we do not read, and patch points. **Two ways to help, both
-useful:**
-
-- **Report a game that works** — if you got a title outside the verified list running, open an issue
- with the title ID, the update version, and what you did. It becomes a profile others can use.
-- **Send the shaders that are missing** — if a game runs but stutters on first use of an effect, its
- shader variants are missing from the map. The host can dump what it cannot find
- (`DM_NVN_SHDUMP=<dir>`); attach those and we add them to `shader_map.tsv` for everyone.
-
-Issues with a full `Documents/log.txt` get looked at first — that log usually names the exact
-missing piece.
-
-Open an issue with one of the [issue forms](https://github.com/LNPANDY/NX2Apple/issues/new/choose) (game problem, build problem, launcher); [CONTRIBUTING.md](CONTRIBUTING.md) says what a report needs.
-
-## Staying current with upstream
-
-The engine (`dm/`, `scripts/`, `docs/`, `ref/`, `AGENTS.md`) is [seedds/nxnative](https://github.com/seedds/nxnative)
-at the commit in `.upstream-ref`, plus a queue of patches in [`patches/`](patches/README.md): one
-`git format-patch` file per change, each saying why the fork carries it and where it stands upstream.
-A scheduled GitHub Actions workflow (`.github/workflows/sync-upstream.yml`, daily 21:30 UTC, also
-runnable by hand) moves the pin with `scripts/patches.py bump`, re-applies the patches with a
-three-way merge, drops the ones upstream has taken, verifies the result (the patch queue check, the
-tests, a macOS host build) and opens a pull request on `sync/upstream` — or an issue naming the
-patch when one no longer applies. Nothing is pushed to `main`. `scripts/patches.py status` lists
-what the fork carries.
+Building by hand from a terminal is in [BUILDING.md](BUILDING.md).
## How to play
-### 1. Build the app (as upstream)
-
-The archive feature does not change the normal build. Follow upstream's
-[README](https://github.com/seedds/nxnative) to install Xcode, Homebrew tools and the Python
-packages, then pack an IPA.
-
-```bash
-git clone https://github.com/<you>/NX2Apple.git
-cd NX2Apple
-brew bundle --file=Brewfile # xcodegen, zstd, spirv-cross, glslang (the NSP script checks for it), .NET SDK
-python3 -m venv .venv # Homebrew's Python refuses global pip installs (PEP 668)
-.venv/bin/python -m pip install lz4 capstone fonttools nsz "backports.zstd; python_version < '3.14'"
-source .venv/bin/activate # so that python3 below is the venv's (in each new terminal)
-```
-
-### 2. What you need on disk
-
-Three things, none of which ship with the repository:
-
-| What | Where it comes from | Used by |
-|---|---|---|
-| **`prod.keys`** | dumped from **your own console** (see below) | the extractor, to decrypt your game |
-| **The game's NSPs** | dumped from your own cartridge or eShop purchases | the extractor |
-| **Xcode + iOS SDK** | the App Store | the app build |
-
-`prod.keys` is the console's key set — a text file of `name = hex value` lines (~230 entries:
-`master_key_xx`, `titlekek_xx`, `header_key`, `key_area_key_application_xx`, …). Every Switch
-homebrew tool reads this format. It is **not** tied to a specific game: one `prod.keys` decrypts
-any of your games. The only requirement is that the file contains keys for the key generation
-(firmware era) the game was packaged with — a current dump covers every retail game.
-
-Where to put it is up to you; you pass the path with `-k`:
-
-```bash
-# any layout works, e.g.
-~/keys/prod.keys
-# or keep it beside the game's NSPs
-~/Games/Hades2/prod.keys
-```
-
-```bash
-python3 scripts/build_ipa_from_nsp.py ~/Games/Hades2 -k ~/keys/prod.keys
-```
-
-How keys are dumped is documented across the Switch homebrew community (Lockpick_RCM from a
-hacked console is the usual route); this repository does not cover that step and ships none of
-it. Two practical notes from real dumps:
-
-- **Malformed lines.** Some dumpers emit lines whose hex value has the wrong length (33 bad
- `master_kek_source_*` lines in one real dump), which makes the extraction tool refuse the whole
- file. Delete the offending lines and keep a backup of the original.
-- **Updates.** An update NSP's ticket may carry a newer key generation than the base game's. The
- extractor reads the title key straight from the common ticket inside each NSP, so in practice
- both decrypt fine as long as `prod.keys` is reasonably current — verified here with a base
- game on generation 15 and its update on 16, using a keys file that only reached 15.
-
-`backports.zstd` is needed for Tears of the Kingdom's zstd dictionaries; other games do not use it.
-
-### 3. Pack the RomFS into an archive
-
-```bash
-python3 dm/tools/romfs_arc.py pack <RomFS dir> <output base> --shard-mib 200
-```
-
-`<RomFS dir>` is the directory `nx_extract` wrote (the one holding `Pack/`, `Banc/`, `Sound/`, …).
-The tool writes `<base>.idx` and `<base>.00`, `<base>.01`, … Files are grouped by top-level
-directory and cut so no shard passes `--shard-mib`, so one shard holds one kind of content.
-
-Check the result before copying anything:
-
-```bash
-python3 dm/tools/romfs_arc.py verify <base> <RomFS dir> # byte-compares every file
-python3 dm/tools/romfs_arc.py list <base> [path] # list one directory
-```
-
-### 4. Build the IPA
-
-The main build script packs a **slim IPA by default** (no RomFS inside; the app reads the game
-files from `Documents/romfs`), so step 1 already produced it. To re-pack just the package later:
-
-```bash
-GAME=<title id> W=<work dir> PATCHED=<patched dir> \
- ROMFS=<RomFS dir> MSL_IOS=<shader dir> \
- dm/ios/tools/build_ipa.sh <output.ipa>
-```
-
-`--full-romfs` (or `DM_FULL_ROMFS=1`) packs the RomFS into the package instead — upstream's
-behaviour, only sensible for small games.
-
-### 5. Copy the archive to the phone
-
-Put the whole set in the app's `Documents/romfs/`, keeping the base name:
-
-```
-Documents/romfs/romfs.idx
-Documents/romfs/romfs.00
-...
-Documents/romfs/romfs.125
-```
-
-The app looks for `romfs.idx` first (`dm/ios/Sources/main.m`, `romfs_locate`). A plain directory
-tree is still accepted when there is no index, so nothing changes for existing games.
-
-The index may sit at any of these places; the reader tries them in order:
-
-```
-<DM_ROMFS>.idx
-<DM_ROMFS>/romfs.idx
-<DM_ROMFS>/romfs/romfs.idx
-```
-
-## Playing
-
-**Touch controls.** Two layouts (tap the button at the top centre to switch): 2D (left stick,
-A/B/X/Y, shoulders, − / +) and 3D (adds a D-pad, a right stick and L3 / R3). With no controller
-connected, touches outside the controls go to the game's touch screen.
-
-**Physical controllers** (GameController framework: Xbox, PlayStation, Switch Pro and MFi pads all
-work) hide the touch controls entirely while connected and bring them back when disconnected;
-meanwhile every touch goes to the game's touch screen. Buttons map by position, as on a Switch
-controller: bottom = B, right = A, left = Y, top = X, and the D-pad and right stick are kept.
-
-**Settings without rebuilding:** `Documents/env.txt`, one `KEY=VALUE` per line. Common ones:
-
-```
-DM_LANG=zh-Hans # Chinese (en-US by default)
-DM_FPS_TARGET=30 # cap the frame rate (saves battery; the profile's fps_target by default)
-DM_OPMODE=0 # handheld mode: 720p render instead of the docked 1080p
-```
-
-**On the Mac,** the launcher's *Launch options* sheet has the same choices (game language, frame
-rate, console mode, ...). They are kept per game and survive rebuilds. For a setting the sheet does
-not have, or to fix one, write an `env.txt` with the same `KEY=VALUE` lines (`DM_LANG=zh-Hans`) in
-one of two places: `~/Library/Application Support/nxnative/<title ID>/env.txt` wins and survives
-rebuilds; `<App>.app/Contents/Resources/dm/env.txt` is the app's own. Apps built before the
-language row was added need one rebuild to get it.
-
-**Saves and logs** are in the Files app under the app's name: `save/` and `log.txt`. When something
-goes wrong, send `log.txt` (the previous run is `log.prev.txt`). Short stutters the first time a new
-scene appears are normal: the app compiles graphics for it once and remembers them.
-
-## Using it for another game
-
-The archive format has nothing game-specific in it: the packer walks whatever directory you give it
-and the reader looks paths up in that tree. To switch games:
-
-1. Extract the new game's NSPs with `nx_extract` as usual (upstream's script does this).
-2. Pack that game's `RomFS` with `romfs_arc.py`.
-3. Rebuild the IPA with the new `GAME=` profile (the slim package is the default).
-4. Copy the new archive into `Documents/romfs/`.
-
-Three things to watch for:
-
-- **The shard count must stay at or below 256.** The reader keeps one fd slot per shard
- (`MAX_SHARDS` in `romfs_arc.h`). The packer now refuses to write an index above that and tells you
- which `--shard-mib` would fit. Tears of the Kingdom needs 126 at 200 MiB; a game about twice its
- size would need 256 MiB shards.
-- **DLC is not archived.** Add-on content still goes into the package (`DmIOS.app/aoc/<index>/`) and
- is mounted as a directory. Most DLC is small enough that this does not affect installation; if you
- hit the installer limit again, drop the DLC from the package and it stays unowned.
-- **`zip_store` is per game.** The profile lists extensions that are already compressed and should be
- stored rather than deflated (`.zs`, `.bwav`, `.mc`, `.webm`, `.metallib` for Tears of the Kingdom).
- This only affects the package the shader libraries and tables go into, not the archive.
-
-Games from upstream's tested list (4–6 GB) need roughly 20–30 shards at 200 MiB, well inside the
-limit, and their memory footprint is far below the per-app budget that stops Tears of the Kingdom.
-
-## What changed against upstream
-
-Five files added, four modified. The fs layer keeps its normal path handling: when an archive is
-open, `host_path_ex` hands out a synthetic path (`@romfsarc:<guest path>`) for entries on the
-archive mount, and `OpenFile` / `GetEntryType` / `OpenDirectory` / the directory calls route those
-to the archive. File handles for archive entries are tagged with bit 63 so they never collide with
-real fds, and `ReadFile` clamps to the file size (a shard is a flat container, so an unclamped read
-past the end would return the next file's bytes).
-
-| File | Change |
-|---|---|
-| `dm/host/romfs_arc.h` | new — archive format and reader interface |
-| `dm/host/romfs_arc.c` | new — mmap index, binary-search lookup, lazy shard fds |
-| `dm/tools/romfs_arc.py` | new — pack / verify / list |
-| `dm/host/tests/t_romfs_arc.c` | new — walks a whole archive, checks every file |
-| `docs/ROMFS_ARCHIVE.md` | new — format and design notes |
-| `dm/host/hle_fs.c` | mount and route archive-backed paths |
-| `dm/host/Makefile` | build `romfs_arc.c` |
-| `dm/ios/Sources/main.m` | `romfs_locate` accepts `romfs.idx` |
-| `dm/ios/tools/build_ipa.sh` | slim by default (`DM_FULL_ROMFS=1` = upstream full package) |
-| `scripts/build_ipa_from_nsp.py` | `--work-dir` (build folder away from the NSPs); derives `DOTNET_ROOT` (a framework-dependent `nx_extract` will not start from a plain shell without it) |
-| `frontend/` | new — macOS GUI front end (see [The GUI front end](#the-gui-front-end)) |
-
-The mount is recognised by its **directory**, not its name: titles differ (`rom` for most games,
-`content` for Tears of the Kingdom).
+**On the Mac**, a finished game appears in the library with its key art. **Play** starts it.
+**Launch options** (per game, kept across rebuilds) set the frame rate, console mode (docked or
+handheld), render scale and upscaling, game language, controls and more; what each does is in
+[docs/settings.md](docs/settings.md). A controller drives the launcher as well as the games.
+
+**On the iPhone**, the app shows the same settings before the game starts; tap **Play**. Touch
+controls come in a 2D and a 3D layout (tap the button at the top centre), and a connected controller
+(Xbox, PlayStation, Switch Pro, MFi) replaces them. [docs/playing.md](docs/playing.md) covers touch,
+rumble and motion. Short stutters the first time a scene appears are normal: the app compiles
+graphics for it once and remembers them. The game's data (`romfs.img`) can live on an external drive
+that the Files app picks.
+
+**Game language.** English is the default. On the Mac, use the **Game language** row of Launch
+options. For anything the sheet lacks, write an `env.txt` of `KEY=VALUE` lines (for example
+`DM_LANG=zh-Hans`) in one of two places: `~/Library/Application Support/nxnative/<title ID>/env.txt`
+wins and survives rebuilds; `<App>.app/Contents/Resources/dm/env.txt` is the app's own. A Mac app
+built before the language row existed needs one rebuild to get it. On the iPhone, the same lines go
+in `Documents/env.txt` (`DM_FPS_TARGET=30` caps the frame rate to save battery, `DM_OPMODE=0` picks
+handheld mode).
+
+**Saves and logs.** A Mac game in a library folder keeps its saves and its log beside the app
+(`log/<title ID>.log`); otherwise they are in `~/Library/Application Support/nxnative/<title ID>/` and
+`~/Library/Logs/nxnative/<title ID>.log`. On the iPhone they are in the Files app under the app's
+name: `save/` and `log.txt` (the previous run is `log.prev.txt`).
+
+**Reporting a bug.** Use the [issue forms](https://github.com/LNPANDY/NX2Apple/issues/new/choose)
+(game problem, build problem, launcher problem). Each asks for the game and its title ID, your
+versions and device, **Settings > Copy diagnostics** and the game's log; [CONTRIBUTING.md](CONTRIBUTING.md)
+says why. A report with the full `log.txt` is looked at first. Never attach keys, game files or
+anything extracted from a game.
## Games
-79 game profiles ship with this repository. A profile is what makes a build possible —
-the game's build IDs, memory layout, shader tables and per-game switches — and this fork adds the
-RomFS archive layer on top, so a large game can be installed at all.
-
-The update column is the version the build actually checks: the update NSP's display version
-must match the profile's registered build (the base game's own version does not matter — the
-update layers over it). "无(v0)" = the base game alone is enough.
+94 games have a profile. Three are verified end to end on this fork (built, installed and played on a
+phone), 45 more are reported playable on an iPhone upstream, and the rest have a profile that has not
+been tried on a phone yet. A few of them:
-| Game | Title ID | Update required | Status |
+| | Game | Where it runs | Status |
|---|---|---|---|
-| Super Mario Odyssey | `0100000000010000` | 1.4.1 (v393216) | Playable on an iPhone (upstream) |
-| Pokémon Brilliant Diamond | `0100000011D90000` | 1.3.0 (v393216) | Playable on an iPhone (upstream) |
-| Ace Attorney Investigations Collection | `010005501E68C000` | 1.0.0.2 (v131072) | Profile present; not verified on a phone |
-| Hollow Knight: Silksong | `010013C00E930000` | 1.0.30000 (v655360) | Profile present; not verified on a phone |
-| Digimon Story Cyber Sleuth: Complete Edition | `010014E00DB56000` | 1.0.3 (v196608) | Profile present; not verified on a phone |
-| Super Mario Bros. Wonder | `010015100B514000` | 1.2.1 (v327680) | Playable on an iPhone (upstream) |
-| Mario Kart 8 Deluxe | `0100152000022000` | 4.0.1 (v1507328) | Playable on an iPhone (upstream) |
-| Raging Loop | `010020400E1C2000` | 无(v0) | Profile present; not verified on a phone |
-| ANIMAL WELL | `010020D01AD24000` | 1.0.10 (v655360) | Playable on an iPhone (upstream) |
-| Super Mario 3D World + Bowser's Fury | `010028600EBDA000` | 1.2.2 (v262144) | Playable on an iPhone (upstream) |
-| Ghost Trick: Phantom Detective | `010029B018432000` | 无(v0) | Playable on an iPhone (upstream) |
-| Hyrule Warriors: Age of Calamity | `01002B00111A2000` | 1.3.0 (v327680) | Playable on an iPhone (upstream) |
-| Celeste | `01002B30028F6000` | 1.4.1.1 (v589824) | Profile present; not verified on a phone |
-| Advance Wars 1+2: Re-Boot Camp | `0100300012F2A000` | 无(v0) | Playable on an iPhone (upstream) |
-| Mario + Rabbids® Sparks of Hope | `0100317013770000` | 1.6.2225577 (v393216) | Profile present; not verified on a phone |
-| Return of the Obra Dinn | `010032E00E6E2000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
-| Taiko Risshiden V DX | `0100346017304000` | 1.1.1 (v131072) | Playable on an iPhone by touch (upstream) |
-| The Great Ace Attorney Chronicles | `010036E00FB20000` | 无(v0) | Playable on an iPhone (upstream) |
-| FINAL FANTASY TACTICS - The Ivalice Chronicles | `010038B015560000` | 1.4.0 (v393216) | Profile present; not verified on a phone |
-| 13 Sentinels: Aegis Rim | `01003FC01670C000` | 1.10 (v65536) | Playable on an iPhone (upstream) |
-| Blasphemous 2 | `010040801A4C8000` | 1.0.8 (v524288) | Profile present; not verified on a phone |
-| 13 Sentinels: Aegis Rim (Japan) | `010045C014650000` | 无(v0) | Profile present; not verified on a phone |
-| Bayonetta 3 | `01004A4010FEA000` | 1.2.0 (v131072) | Playable on an iPhone (upstream) |
-| DARK SOULS: REMASTERED | `01004AB00A260000` | 1.0.3 (v196608) | Profile present; not verified on a phone |
-| Kirby and the Forgotten Land | `01004D300C5AE000` | 1.1.0 (v65536) | Profile present; not verified on a phone |
-| Monster Train 2 | `010051701FB46000` | 1.1.1 (v131072) | Playable on an iPhone (upstream) |
-| OCTOPATH TRAVELER 0 | `01005270232F2000` | 1.0.5 (v327680) | Profile present; not verified on a phone |
-| Hades | `0100535012974000` | 1.0.38233 (v589824) | Playable on an iPhone (upstream) |
-| Unicorn Overlord (Asia) | `010054B01AD92000` | 1.05 (v262144) | Profile present; not verified on a phone |
-| Fire Emblem: Three Houses | `010055D009F78000` | 1.2.0 (v327680) | Playable on an iPhone (upstream) |
-| NieR:Automata The End of YoRHa Edition | `010056B015FE8000` | 1.0.3 (v131072) | Playable on an iPhone (upstream) |
-| OCTOPATH TRAVELER | `010057D006492000` | 1.0.5 (v327680) | Profile present; not verified on a phone |
-| Persona 5 Royal | `01005CA01580E000` | 1.0.2 (v65536) | Playable on an iPhone (upstream) |
-| Yoshi's Crafted World | `01006000040C2000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
-| FINAL FANTASY RESONANCE | `0100606026F12000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
-| Big Brain Academy: Brain vs. Brain | `0100620012D6E000` | 1.2.0 (v131072) | Profile present; not verified on a phone |
-| Persona 4 Golden | `010062B01525C000` | 1.0.2 (v131072) | Profile present; not verified on a phone |
-| Mario + Rabbids Kingdom Battle | `010067300059A000` | 1.9.589692 (v589824) | Profile present; not verified on a phone |
-| Unicorn Overlord | `010069401ADB8000` | 1.05 (v262144) | Profile present; not verified on a phone |
-| Blasphemous | `0100698009C6E000` | 1.0.8 (v524288) | Profile present; not verified on a phone |
-| SHIN MEGAMI TENSEI V: Vengeance | `010069C01AB82000` | 1.0.3 (v196608) | Playable on an iPhone (upstream) |
-| Super Smash Bros. Ultimate | `01006A800016E000` | 13.0.5 (v2031616) | Playable on an iPhone (upstream) |
-| The Legend of Zelda: Link's Awakening | `01006BB00C6F0000` | 1.1.0 (v131072) | Playable on an iPhone (upstream) |
-| DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition | `01006C300E9F0000` | 1.0.4 (v262144) | Profile present; not verified on a phone |
-| Animal Crossing: New Horizons | `01006F8002326000` | 3.0.3 (v2228224) | **Verified here** — builds, installs and runs smoothly on an iPhone; 103,645 files into 72 archive shards |
-| AI: THE SOMNIUM FILES - nirvanA Initiative | `0100713016CCC000` | 1.0.2 (v131072) | Playable on an iPhone (upstream) |
-| ASTRAL CHAIN | `01007300020FA000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
-| Xenoblade Chronicles 3 | `010074F013262000` | 2.2.1 (v720896) | Profile present; not verified on a phone |
-| Bayonetta | `010076F0049A2000` | 1.1 (v65536) | Playable on an iPhone (upstream) |
-| Bayonetta 2 | `01007960049A0000` | 1.2 (v131072) | Playable on an iPhone (upstream) |
-| Portal | `01007BB017812000` | 1.0.3 (v196608) | Playable on an iPhone (upstream) |
-| The Legend of Zelda: Breath of the Wild | `01007EF00011E000` | 1.9.0 (v1114112) | Playable on an iPhone (upstream) |
-| BALL x PIT | `010086A022444000` | 1.293 (v393216) | Playable on an iPhone (upstream) |
-| AI: THE SOMNIUM FILES | `010089B00D09C000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
-| STEINS;GATE RE:BOOT | `01008BC024FDE000` | 1.0.3 (v131072) | Profile present; not verified on a phone |
-| Sea of Stars | `01008C0016544000` | 2.0.59001 (v786432) | Playable on an iPhone (upstream) |
-| The Legend of Zelda: Echoes of Wisdom | `01008CF01BAAC000` | 1.1.0 (v196608) | Playable on an iPhone (upstream) |
-| 13 Sentinels: Aegis Rim (Asia) | `01008D7016438000` | 无(v0) | Playable on an iPhone (upstream) |
-| Pokémon Shield | `01008DB008C2C000` | 1.3.2 (v458752) | Playable on an iPhone (upstream) |
-| Metroid Dread | `010093801237C000` | 2.1.0 (v327680) | Playable on an iPhone (upstream) |
-| Super Mario Galaxy | `010099C022B96000` | 1.3.1 (v327680) | Playable on an iPhone (upstream) |
-| Captain Toad: Treasure Tracker | `01009BF0072D4000` | 1.4.2 (v393216) | Profile present; not verified on a phone |
-| Donkey Kong Country Returns HD | `01009D901BC56000` | 1.1.0 (v65536) | Profile present; not verified on a phone |
-| Hades II | `0100A00019DE0000` | 1.0.137848 (v1) | **Verified here** — builds, installs and runs on an iPhone; 33-file archive |
-| OCTOPATH TRAVELER II | `0100A3501946E000` | 1.1.1 (v131072) | Playable on an iPhone (upstream) |
-| Pokémon Scarlet | `0100A3D008C5C000` | 无(v0) | Profile present; not verified on a phone |
-| Cuphead | `0100A5C00D162000` | 1.3.7 (v655360) | Profile present; not verified on a phone |
-| Fire Emblem Engage | `0100A6301214E000` | 2.0.0 (v327680) | Playable on an iPhone (upstream) |
-| Absolum | `0100A83022A22000` | 1.1.2 (v458752) | Profile present; not verified on a phone |
-| DRAGON QUEST VII Reimagined | `0100A9D01C446000` | 1.2.0 (v131072) | Profile present; not verified on a phone |
-| Pokémon Sword | `0100ABF008968000` | 1.3.2 (v458752) | Playable on an iPhone (upstream) |
-| Monster Hunter Rise | `0100B04011742000` | 16.0.2 (v2228224) | Profile present; not verified on a phone |
-| Pikmin 4 | `0100B7C00933A000` | 1.1.1 (v262144) | Playable on an iPhone (upstream) |
-| FINAL FANTASY RESONANCE (Asian release) | `0100B8A026F14000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
-| NieR:Automata The End of YoRHa Edition | `0100B8E016F76000` | 1.0.3 (v131072) | Profile present; not verified on a phone |
-| Mario vs. Donkey Kong | `0100B99019412000` | 1.0.1 (v65536) | Playable on an iPhone (upstream) |
-| FINAL FANTASY X/X-2 HD Remaster | `0100BC300CB48000` | 无(v0) | Profile present; not verified on a phone |
-| Catherine: Full Body | `0100BF00112C0000` | 1.0.1a (v131072) | Profile present; not verified on a phone |
-| Donkey Kong Country: Tropical Freeze | `0100C1F0051B6000` | 1.0.2 (v131072) | Profile present; not verified on a phone |
-| ROMANCE OF THE THREE KINGDOMS 8 REMAKE | `0100C2A01A730000` | 1.1.3 (v851968) | Playable on an iPhone with a controller (upstream) |
-| Balatro | `0100CD801CE5E000` | 1.1.3 (v851968) | Playable on an iPhone (upstream) |
-| FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition | `0100CE4010AAC000` | 1.0.3 (v196608) | Profile present; not verified on a phone |
-| Silver Pines | `0100D5B026844000` | 无(v0) | Profile present; not verified on a phone |
-| Rhythm Heaven Groove | `0100D9F01D474000` | 无(v0) | Profile present; not verified on a phone |
-| Luigi's Mansion 3 | `0100DCA0064A6000` | 1.4.0 (v327680) | Playable on an iPhone (upstream) |
-| Patrick's Parabox | `0100E44016C22000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
-| Stardew Valley | `0100E65002BB8000` | 1.6.15.13 (v1310720) | Playable on an iPhone (upstream) |
-| Xenoblade Chronicles 2 | `0100E95004038000` | 2.1.0 (v983040) | Profile present; not verified on a phone |
-| Paper Mario: The Thousand-Year Door | `0100ECD018EBE000` | 1.0.1 (v65536) | Profile present; not verified on a phone |
-| The Legend of Zelda: Tears of the Kingdom | `0100F2C0115B6000` | 1.4.3 (v720896) | **Verified here** — builds, installs and runs on an iPhone; 304,243 files into 127 archive shards, byte-verified |
-| Pokémon Legends: Z-A | `0100F43008C44000` | 2.0.2 (v393216) | Profile present; not verified on a phone |
-| Brain Memory Training Academy | `0100F5D01DA3A000` | 无(v0) | Profile present; not verified on a phone |
-| Super Mario Galaxy 2 | `0100FD8022DAA000` | 1.4.0 (v393216) | Profile present; not verified on a phone |
-| Xenoblade Chronicles: Definitive Edition | `0100FF500E34A000` | 1.1.2 (v196608) | Profile present; not verified on a phone |
-
-## Verified on
-
-- **Tears of the Kingdom** (0100F2C0115B6000, v1.0.0 + update 1.4.3): 304,243 files packed into 127
- files; all 304,243 byte-compared against the source (`verify: OK`); the game runs from the archive
- on macOS (1,905 frames at 30 fps).
-- **Hades II** (0100A00019DE0000, base + update 1.0.137848): 5,258 files packed into 33 files,
- byte-compare OK, and the game runs from the archive on macOS (2,100 frames, 1,772 archive reads).
- The update needs no special handling: `nx_extract` already layers the update NCA over the base
- with `OpenFileSystemWithPatch`, so the extracted RomFS — and therefore the archive — is the merge.
- **Playable on an iPhone** (12 GB device, AltStore Classic 2.3) once the memory entitlement is in
- effect — see below.
-- The C reader walks all 304,243 Tears of the Kingdom files and 2,667 directories in 7.6 s.
-
-**The jetsam budget is the limit on big titles, and it can be raised.** Without
-`com.apple.developer.kernel.increased-memory-limit` an iPhone gives this app ~3,375 MB (measured on
-a 12 GB device: Tears of the Kingdom was killed entering the world map at 3,342 MB resident with
-33 MB of headroom; lowering the render scale to 0.5 did not change it, so the limit is the guest
-heap, not the GPU). The app requests the entitlement and `build_ipa.sh` embeds it in a placeholder
-ad-hoc signature — an unsigned binary has no signature for a sideloader to read entitlements from,
-so without that step the request would be lost. **AltStore Classic 2.2+**, **Impactor** and **Xcode
-with a Personal Team** keep it; **SideStore** with a free Apple ID needs a one-time App ID fix;
-**Sideloadly** does not. See [dm/ios/ENTITLEMENTS.md](dm/ios/ENTITLEMENTS.md) for the steps and how
-to tell from `Documents/log.txt` (resident + headroom: ~3,375 MB = not in effect, 6–8 GB = it is).
-
-<a id="limitations"></a>
+| <img src="docs/images/zelda-tears-of-the-kingdom.jpg" width="96" alt=""> | The Legend of Zelda: Tears of the Kingdom | Mac and iPhone | **Verified here**: 304,243 files, byte-checked; ~17 GB |
+| <img src="docs/images/hades-ii.jpg" width="96" alt=""> | Hades II | Mac and iPhone | **Verified here** |
+| <img src="docs/images/animal-crossing-new-horizons.jpg" width="96" alt=""> | Animal Crossing: New Horizons | iPhone | **Verified here**: runs smoothly |
+| <img src="docs/images/super-mario-odyssey.jpg" width="96" alt=""> | Super Mario Odyssey | iPhone | Reported playable upstream |
+| <img src="docs/images/zelda-breath-of-the-wild.jpg" width="96" alt=""> | The Legend of Zelda: Breath of the Wild | iPhone | Reported playable upstream; 60 fps with 1.9.0 |
+| <img src="docs/images/mario-kart-8-deluxe.jpg" width="96" alt=""> | Mario Kart 8 Deluxe | iPhone | Reported playable upstream |
-## Limitations
+**[GAMES.md](GAMES.md)** (中文: [GAMES.zh-CN.md](GAMES.zh-CN.md)) has the screenshot gallery with each
+game's install size, and the full table with the update version each game needs: the update NSP's
+display version must match the profile's, or the build says so.
-**What to expect before you start:**
+## Limitations
-- **Verified ≠ all 58 games.** Three are verified end to end here; the rest are profiles, most
- reported playable upstream. A title outside the table needs bring-up work of its own.
-- **Apple Silicon Mac required.** The build pipeline is macOS-only (Xcode, Metal).
-- **iOS 26+ and a recent iPhone.** The host targets current iOS; older devices are untested.
+- **Only the games with a profile.** A title outside the list needs bring-up work of its own; the
+ place to start is [docs/agents](docs/agents/README.md), upstream's guide for another Switch title.
+- **Big games on an iPhone hit a memory limit.** Without the Increased Memory Limit entitlement iOS
+ gives the app about 3.4 GB, which is not enough for Tears of the Kingdom. The app requests it, and
+ AltStore Classic 2.2+, Impactor and Xcode with a Personal Team keep it; SideStore with a free Apple
+ ID needs a one-time App ID fix, and Sideloadly drops it ([the steps](dm/ios/ENTITLEMENTS.md)). The
+ full measurements are in [GAMES.md](GAMES.md#verified-on).
+- **Unsigned apps.** The launcher and the iPhone builds are not signed for you; you sideload them.
- **Your own files.** No game data, firmware or keys are included or downloaded.
+- **Older shard archives still load.** The first iPhone builds packed Tears of the Kingdom into a
+ RomFS shard archive (`romfs.idx`); the build writes a single `romfs.img` now, and the reader for
+ the old archives is still shipped ([docs/ROMFS_ARCHIVE.md](docs/ROMFS_ARCHIVE.md)).
-**About the archive:**
+## For developers
-- **Read-only.** The archive is never written; saves and temp data go to their own mounts as before.
-- **Case-sensitive lookup.** Names are stored as the source tree had them, so the host's
- case-insensitive alias machinery (for APFS) is bypassed for archive entries.
-- **Symlinks are followed at pack time.** No supported game's RomFS has any.
-- **The index is held in memory.** 28 MB for Tears of the Kingdom (17.9 MB of it names). Shards are
- not.
-- **No dedup or compression.** Shards are the source bytes verbatim, so `verify` is a plain
- comparison and a repack is deterministic.
+- **Build from source:** [BUILDING.md](BUILDING.md). **Report or fix something:** [CONTRIBUTING.md](CONTRIBUTING.md).
+- **What this fork changes in upstream:** the engine (`dm/`, `scripts/`, `docs/`, `ref/`,
+ `AGENTS.md`) is nxnative at a pinned commit plus a queue of patches, each saying why the fork
+ carries it. [patches/README.md](patches/README.md) explains it, and
+ `python3 scripts/patches.py status` lists what is carried. A daily job moves the pin and opens a
+ pull request, or an issue naming the patch that no longer fits.
+- **Another Switch game:** [docs/agents](docs/agents/README.md) (extraction, binary survey, bring-up).
+- **Release history:** [CHANGELOG.md](CHANGELOG.md).
## Credits
@@ -772,9 +161,9 @@ to tell from `Documents/log.txt` (resident + headroom: ~3,375 MB = not in effect
- **[v0lumehi](https://github.com/v0lumehi)** — **the Mac front end's launcher** (PR [#27](https://github.com/LNPANDY/NX2Apple/pull/27), 40 files): a game library with key art, per-game launch options, a real progress stream, and a Stop that ends the whole build's process group. The Mac app went from "a build form" to the first version of a launcher that opens like a Switch.
- **[m1guelpf](https://github.com/m1guelpf)** (Miguel Piedrafita) — two HLE fixes (PRs [#24](https://github.com/LNPANDY/NX2Apple/pull/24) and [#26](https://github.com/LNPANDY/NX2Apple/pull/26)): the missing `EnableAlbumImageTakenNotification` and `CreateWithAdjustableSystemClock` entries plus their snapshot type byte — each would have read a null in games that call them, and each came with a test.
-Want on this list? [Contributing](#contributing-shaders-and-game-support) says how to start; reports with a full log and fixes with a test move fastest.
+Want on this list? [Contributing](CONTRIBUTING.md#helping-with-games) says how to start; reports with a full log and fixes with a test move fastest.
-All of the emulation work is other people's. This repository adds the archive subsystem on top:
+All of the engine work is other people's. This repository adds the launcher and the patch queue on top:
- **[nxnative](https://github.com/seedds/nxnative)** (MIT) — the native-execution toolchain this
repository is built from: the NSO rewriter, the Horizon host layer, NVN-on-Metal, the per-game
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 92515d7f..3775e87f 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -27,13 +27,7 @@
- **存档自由**:Mac 端各游戏存档及日志在游戏库文件夹统一管理
- **iPhone 端游戏自由**:iOS 端终于可将游戏资源 .img 文件放在移动硬盘中加载
-一个 macOS App 拿你自己导出的游戏文件,点几下就把整件事做完——解包、为 Apple 芯片重写游戏代码、把
-shader 翻译成 Metal、打包出装得进手机的瘦身 IPA 和分片 RomFS 归档(16 GB 的大作也装得上),最后告诉
-你装上设备的三步。
-
-**English readers** — the [English README](README.md) covers everything.
-
-**原名 `nxnative-romfs-archive`** —— 旧链接会自动跳转到这里。
+所有版本见[更新日志](CHANGELOG.zh-CN.md)。**English readers** — the [English README](README.md) covers everything. **原名 `nxnative-romfs-archive`**:旧链接会自动跳转到这里。
</div>
@@ -41,535 +35,106 @@ shader 翻译成 Metal、打包出装得进手机的瘦身 IPA 和分片 RomFS
## 这是什么
-本仓库是 **[nxnative](https://github.com/seedds/nxnative)** 的社区 fork——NSO 重写器、Horizon 宿主层、
-NVN-on-Metal、各游戏的 profile 都是上游的工作,本 fork 自动跟随上游。在此之上它增加了:
-
-- **给普通用户的图形界面。** [nxnative for Mac](frontend/README.md) 把游戏库和构建工具放在一个窗口里:
- 选好游戏文件夹,选择「这台 Mac」或「iPhone / iPad」,构建过程按脚本自己的计数实时显示进度。构建好的
- Mac 游戏带着 eShop 封面出现在游戏库里,点 **Play** 即可启动,并可为每个游戏设置启动选项(与 iPhone
- 启动器相同:帧率、主机模式、超分辨率等)。设备依赖自动检测并一键安装;界面跟随系统语言显示中文或英文。
- **它还会替你下载仓库、并自己更新自己**——完全不需要懂 git。
-- **RomFS 归档。** 《王国之泪》的 304,243 个文件变成 127 个分片——这就是 iOS 从
- `PackageExtractionFailed` 安装失败到安装成功之间的差别(细节见下)。
-- **⏸️ 构建中断可续。** 解包、DLC、模块改写和 shader 编译都会保留复用:失败或中途停止的构建从上次
- 继续,参数没变的重新构建直接复用一切。
-- **自动跟随上游。** 每天一次的 GitHub Actions 把本 fork 的特性重新应用到 upstream 新树,验证
- (脚本解析、归档读取测试、macOS 宿主编译)后推送——补丁对不上时开 issue 附日志,不推送。
-- **79 个游戏 profile**,每个游戏需要的更新包版本单独列出。三个在本 fork 完整验证;44 个上游
- 报告 iPhone 可玩。
-
----
-
-## 目录
-
-- [功能一览](#功能一览)
-- [快速开始](#快速开始)
-- [支持的游戏](#支持的游戏)——完整列表;[实测](#实测游戏)在前
-- [工作原理](#工作原理)
-- [更新历史](#更新历史)
-- [参与贡献:着色器与新游戏](#参与贡献着色器与新游戏)
-- [限制](#限制)
-- [致谢](#致谢)
-- [法律](#法律)
-
----
-
-## 功能一览
-
-| 功能 | 说明 |
-|---|---|
-| **一键构建** | 选好文件,按一下构建。全程不用命令行 |
-| **RomFS 归档** | 30 万文件 → 约 100 个分片,16 GB 的大作也装得上 |
-| **断点续传** | 中断的构建接着跑;没变的部分直接复用 |
-| **79 个游戏 profile** | 每个都标注它需要的精确更新版本 |
-| **安装引导** | 装到手机的三步,带「在访达中显示」 |
-| **中英双语** | 跟随设备语言,标题栏随时切换 |
-| **自助安装** | 自动下载仓库,App 自己也能更新自己 |
-| **自动同步上游** | 每天一次,带验证;补丁失效会开 issue |
-
----
-
-## 快速开始
-
-1. **下载 App** —— [最新版本](https://github.com/LNPANDY/NX2Apple/releases/latest)
- (`NS-Port-Builder-macOS-arm64.zip`)。解压,首次启动右键 → 打开。
-2. **让它把项目取回来** —— 仓库分组里有「下载仓库」按钮(浅克隆到 `~/NX2Apple`)。GitHub 不顺手?
- 面板上有手动 ZIP 的路线。
-3. **选好游戏文件** —— 本体、更新包、DLC 和 `prod.keys`,分开选或一个文件夹全选。
-4. **按构建**,然后照它给出的三步装到手机。
-
-> 环境要求:Apple Silicon Mac;启动器支持 macOS 13 或更新。构建需要装了 iOS SDK 的 [Xcode](https://apps.apple.com/app/xcode/id497799835);NVN 游戏需要 Xcode 27.1(macOS 26.6 或更新),除非加 `--allow-other-metal`。App 自带构建工具和 Python,不需要装 Homebrew 和 Python;.NET SDK 10 仍由 App 帮你安装。
-> App 的依赖面板会逐项检测,能装的直接装。游戏文件和 `prod.keys` 需要你自己的——本仓库不含任何数据。
-
----
-
-## 实测游戏
-
-**3 款在本 fork 完整验证**(构建 → 安装 → 真机可玩)、**29 款上游报告可玩**、**共 58 个 profile**。
-每款游戏需要的精确更新版本见[完整表格](#支持的游戏)。
-
-| 游戏 | 本 fork 验证 | 备注 |
-|---|---|---|
-| **塞尔达传说:王国之泪** | ✅ | 304,243 个文件 → 127 片,逐字节校验 |
-| **Hades II** | ✅ | 33 个文件的归档 |
-| **集合啦!动物森友会** | ✅ | 103,645 个文件 → 72 片,流畅运行 |
-
----
-
-## 工作原理
-
-### 图形界面
-
-`frontend/` 是一个 macOS App,用窗口代替终端完成下面的第 2–5 步,给不想读构建日志的人用:四项输入
-分开选(本体、更新、DLC、`prod.keys`)、依赖面板检测并安装缺的东西、脚本真实的阶段列表和实时百分比、
-结束时产出归档分片。
-
-<details>
-<summary><b>问题、解法与归档格式(点开)</b></summary>
-
-```bash
-cd frontend && swift run # 或双击 frontend/nxnative.app
-```
-
-界面双语:跟随系统语言(任何中文变体显示中文,**其他一律英文**)。
-
-它跑的脚本和命令行完全相同,所以下面的一切同样适用;详见 [frontend/README.md](frontend/README.md)。
-预编译的 App 和中英双语的发布说明(含哪些游戏已验证)在
-[releases 页面](https://github.com/LNPANDY/NX2Apple/releases) 和
-[docs/RELEASE_NOTES.md](docs/RELEASE_NOTES.md)。
-
-</details>
-
-### 问题
-
-《王国之泪》这样的 RomFS 是 **304,243 个文件 / 15.9 GiB**。这会带来两个故障:
-
-- **IPA 装不上。** 一个 16.6 GB、含 372,660 个条目的包在 iOS 上直接失败,报
- `PackageExtractionFailed (Could not extract archive)`。安装守护进程的解压器放弃了 ——
- 单个目录里有 75,941 个文件,ZIP64 中央目录的偏移从 17.8 GB 开始。
-- **把目录树拷进手机要几小时。** 「文件」App 和 Finder 都是每个文件一次往返。30 万个小文件
- 还会额外产生约 1 GB 的文件系统块开销。
-
-把目录树打成约 100 个分片文件可以同时解决两者:包保持很小,游戏文件作为一个大文件夹一次拷完。
-
-<details>
-<summary><b>归档格式(点开)</b></summary>
-
-### 做法
-
-一种 **ROMFSARC** 归档:一个索引文件加 N 个分片文件。
-
-```
-romfs.idx 28 MB 头部、名称池、文件表、目录表
-romfs.00 ... .125 126 个分片,每片 200 MiB,源文件字节原样
-```
-
-在《王国之泪》(v1.0.0 + 1.4.3)上的实测:
-
-| | 原始 RomFS | ROMFSARC |
-|---|---|---|
-| 文件数 | 304,243 | **127** |
-| 最大的目录 | 75,941 个条目 | 126 个分片,均不超过 200 MiB |
-| 含游戏的 IPA | 16.6 GB(装不上) | — |
-| 瘦身 IPA(默认,不含 RomFS) | — | **743 MB,可安装** |
-| 拷到手机 | 数小时 | 一个含 127 个文件的文件夹 |
-
-路径查找是对排序后的文件表做二分查找;目录枚举只遍历一段连续的子项区间。索引用 `mmap` 映射,
-分片按需打开,读取直接在分片上 `pread`,所以页缓存照常生效。
-
-</details>
-
-## 图形界面
-
-`frontend/` 是一个 macOS App,用窗口代替终端完成下面第 2–5 步,给不想读构建日志的人用:带封面的游戏库;
-构建页(选一个游戏文件夹,或分别选本体、更新包、DLC 和 `prod.keys`;目标为 Mac 或 iPhone);直接显示
-脚本自己的阶段列表、实时计数和剩余时间;Mac 版游戏的启动选项;以及自动检测并一键安装缺失依赖的设置页。
-
-<img src="frontend/screenshots/launcher-library.webp" width="100%" alt="nxnative for Mac:游戏库,正在构建">
-
-<details>
-<summary>构建页与启动选项</summary>
-
-<img src="frontend/screenshots/launcher-build.webp" width="66%" alt="构建游戏"> <img src="frontend/screenshots/launcher-launch-options.webp" width="32%" alt="启动选项">
-
-</details>
+NX2Apple 用你自己导出的游戏文件,在你的 Mac 和 iPhone 上运行 Nintendo Switch 游戏。它不是模拟器:
+游戏自己的代码直接在 Apple 芯片上运行,由 Metal 负责绘制。一个 Mac App(启动器)点几下就完成构建
+(解包、改写、翻译 shader、打包),然后把你的游戏放进游戏库,像 Switch 一样点 **Play** 启动。
-```bash
-cd frontend && swift run # 或直接双击 frontend/nxnative.app
-```
+<img src="frontend/screenshots/launcher-library.webp" width="100%" alt="启动器:已构建游戏的游戏库,和一个正在进行的构建">
-界面支持中英双语:跟随系统语言(中文系统用中文,**其他所有语言都用英文**)。
+它是 **[nxnative](https://github.com/seedds/nxnative)** 的社区 fork。真正的工作(代码改写器、Horizon
+宿主层、NVN-on-Metal 和每个游戏的 profile)都是 nxnative 的;本 fork 在其上增加启动器和少量补丁,
+并每天跟随 nxnative 更新。
-它调用的就是命令行那套脚本,下面的说明全部适用;细节见
-[frontend/README.md](frontend/README.md)。打包好的 App 和英中双语发布说明(含已验证游戏清单)在
-[Releases 页面](https://github.com/LNPANDY/NX2Apple/releases),仓库内也存了一份:
-[docs/RELEASE_NOTES.md](docs/RELEASE_NOTES.md)。
+## 环境要求
-## 更新历史
+- **Apple Silicon Mac。** 启动器支持 **macOS 13 或更新**。构建需要装了 iOS SDK 的 Xcode;NVN 游戏需要
+ [Xcode](https://apps.apple.com/app/xcode/id497799835) 27.1(macOS 26.6 或更新),除非加 `--allow-other-metal`。
+- **你自己的游戏文件**(NSP 或 XCI)和**你自己主机里导出的 `prod.keys`**。本项目不自带、不下载、
+ 也不替你查找任何东西。一份 `prod.keys` 能解你所有的游戏;新导出的一份覆盖所有零售游戏。
+- 要装到 iPhone:iOS 26 或更新,以及较新的手机。更旧的设备未测试。
-最新在上。本 fork 每天跟随上游,标「同步上游」的条目是自动来的。
+App 自带构建工具和 Python,不需要装 Homebrew 和 Python;.NET SDK 10 仍由 App 帮你安装。启动器的依赖页会逐项检查,能装的一键安装。
-| 日期 | 版本 | 变更 |
-|---|---|---|
-| 2026-10-27 | v0.4.9 | **游戏库跟着文件夹走**:Mac 游戏的存档和日志放在 .app 旁边,首次运行自动从 `~/Library` 迁移;**iPhone 的游戏数据可以放任何位置**(Files 应用选择器,自动记住);**追踪器八项需求全部落地**(#77–#84:密钥预检、文件拖拽、构建通知、旧工具标记、空间回收、Mac 与设备存档互拷、复制诊断报告、手柄布局);Windows:中文界面修复、中文用户名下 Metal 探针正常、依赖安装失败闪退修复、Vulkan SDK 自动识别 |
-| 2026-10-27 | v0.4.8 | **Mac 启动器真正可用了**:把 iPhone 版装到配对设备(#28)、手柄导航整个启动器(#56)、启动选项分基础/高级(#54)并加上显示模式与真实像素的 Render scale(#55)、Mods 区走 `DM_ROMFS_OVERLAY`(#57)、键位与手柄按钮可自定义(#39);**启动时自动更新构建工具**(#60),**新版本会先说明改了什么**再让你决定;修复:每一款游戏的每一次重写都会崩(`patch_nso.py` 的 `TEXT_LO` 先用后定义,#59)、Mac 版建什么都报「需要 Python 3.12」(#53)、一个文件夹多款游戏时一款都建不了(#58)、构建失败指向窗口外的日志(#52)、Windows 中文系统显示英文界面、CI 建不了 issue |
-| 2026-10-27 | v0.4.7 | **79 个游戏 profile**(+7:歧路旅人、大金刚国度 归乡 HD、大金刚国度 热带冻结)来自每日同步;**一个宿主二进制适配任意游戏的内存布局**(运行时 profile——为通用启动器打下的地基,启动器本身尚未开始);**语言切换现在翻译整个界面**;**Xcode Beta 也算数**(检测改问 xcode-select);上游更新导致 shader 缓存失效时会醒目提示;「输出目录」同时是构建缓存的位置已写明;Windows 前端:App 内装 Python 3.12、SDK 克隆突破 Windows 路径长度限制、LLVM 用试编译而不是 --version 验证、不再弹黑色命令行窗口;外置 exFAT 工作目录重建不再崩溃 |
-| 2026-10-26 | v0.4.6 | **Windows 版按真机反馈修好**:.NET SDK 那一行以前根本不存在(所以永远装不上)、不再弹出黑色命令行窗口抢走焦点、下载走镜像并用测速挑最快的一个(真机上 LLVM 曾下 974 秒)、工具装到 App 目录外所以更新不再把它删掉、检查更新会说明 git 在做什么 |
-| 2026-10-26 | v0.4.5 | **可输出 Mac App**(同一次构建产出可双击运行的 .app);**支持 A15 / A16 及更早设备**(CPU 解压 BC 纹理,App 内开关);每游戏独立数据目录(`Documents/games/<id>/`),外置硬盘可用;NRO 头不再被当作代码扫描;每日同步不会再静默失败 |
-| 2026-10-26 | v0.4.4 | **修复了 v0.4.3 里每个 App 构建都会失败的问题**(`work` 在赋值前被读取);72 款游戏(+3) |
-| 2026-10-26 | v0.4.3 | NSZ/XCZ 压缩格式开箱可用;全新 Xcode 会明说缺 iOS SDK;三个环境陷阱关掉 |
-| 2026-10-25 | v0.4.2 | App 自己下载并更新仓库、也能更新自己;58 款游戏(+10);读档死锁修复;NuGet 报错自动恢复 |
-| 2026-10-24 | v0.4.1 | 集合啦!动物森友会在 iPhone 上验证通过(103,645 文件 → 72 片);归档打包复用未变的成果 |
-| 2026-10-23 | v0.4.0 | 归档文件夹直接可拷贝并附安装引导;依赖列表可折叠;表格列出每个游戏的所需版本;更名为 NX2Apple |
-| 2026-10-23 | v0.3.1 | 修复 Homebrew Python 3.15 与 `DOTNET_ROOT` 问题(#1、#2) |
-| 2026-10-22 | v0.3.0 | App 图标,46 款游戏 |
-| 2026-10-21 | v0.2.1 | Python 3.9 构建修复 |
-| 2026-10-20 | v0.2.0 | 中英双语 |
-| 2026-10-20 | v0.1.0 | 首个版本:图形界面、RomFS 归档 |
+## 安装
-## 参与贡献:着色器与新游戏
+1. **下载 App**:从[最新版本](https://github.com/LNPANDY/NX2Apple/releases/latest)下载
+ `NS-Port-Builder-macOS-arm64.zip`,解压。
+2. **首次启动:右键 → 打开。** 这个 App 没有付费的 Apple 开发者证书签名,所以 macOS 在第一次启动时会
+ 询问;之后就能正常打开。
+3. **按设置页走。** 启动器会取回构建用的项目(设置页上的「下载仓库」按钮,浅克隆到 `~/NX2Apple`;
+ GitHub 不顺手时页面会给出手动 ZIP 的路线),检查上面的工具,之后还会自己更新。全程不需要懂 git。
+4. **构建游戏。** 选好游戏文件夹(或者分别选本体、更新包、DLC 和 `prod.keys`),选择「这台 Mac」或
+ 「iPhone / iPad」,按构建。页面显示真实的阶段和剩余时间,中途停止的构建会从上次继续。iPhone 构建
+ 结束时会给出装到手机的三步。
-每款新游戏都需要单独的 bring-up:profile(build ID、内存布局、纹理槽位)、必要时的 shader 读取器、
-以及补丁点。**两种帮忙方式,都有用:**
-
-- **报告一款能跑的游戏** —— 如果你让验证清单之外的游戏跑起来了,开 issue 附上 title ID、更新版本和
- 你做的步骤,它会变成一个别人也能用的 profile。
-- **提交缺失的着色器** —— 如果游戏能跑但首次使用某个效果时卡顿,说明它的 shader 变体不在映射表里。
- 宿主可以导出找不到的部分(`DM_NVN_SHDUMP=<dir>`);附上它们,我们把它加进 `shader_map.tsv`,
- 所有人都受益。
-
-带完整 `Documents/log.txt` 的 issue 会优先看——那份日志通常能直接指出缺的是什么。
-
-开 issue 请用[问题表单](https://github.com/LNPANDY/NX2Apple/issues/new/choose)(游戏问题、构建问题、启动器);需要附什么见 [CONTRIBUTING.md](CONTRIBUTING.md)(英文)。
-
-## 跟随上游更新
-
-引擎(`dm/`、`scripts/`、`docs/`、`ref/`、`AGENTS.md`)就是 [seedds/nxnative](https://github.com/seedds/nxnative)
-在 `.upstream-ref` 所记提交上的内容,再加 [`patches/`](patches/README.md) 里的一组补丁:每项改动一个
-`git format-patch` 文件,写明本 fork 为什么带着它、它在上游处于什么状态。定时的 GitHub Actions 工作流
-(`.github/workflows/sync-upstream.yml`,每天 21:30 UTC,也可手动触发)用 `scripts/patches.py bump`
-移动基准提交,以三方合并重新应用补丁,丢掉上游已采纳的补丁,做验证(补丁队列检查、测试、macOS
-宿主编译),然后在 `sync/upstream` 分支上开一个 pull request;某个补丁对不上时,开一个点名该补丁的
-issue。不会向 `main` 直接推送。`scripts/patches.py status` 列出本 fork 带着的全部补丁。
-
-## 使用方法
-
-### 1. 构建 App(与上游相同)
-
-归档功能不改变正常构建流程。按上游的 [README](https://github.com/seedds/nxnative) 安装 Xcode、
-Homebrew 工具和 Python 包,然后打 IPA。
-
-```bash
-git clone https://github.com/<you>/NX2Apple.git
-cd NX2Apple
-brew bundle --file=Brewfile # xcodegen, zstd, spirv-cross, glslang(打包脚本会检查它), .NET SDK
-python3 -m venv .venv # Homebrew 的 Python 不允许全局 pip 安装(PEP 668)
-.venv/bin/python -m pip install lz4 capstone fonttools nsz "backports.zstd; python_version < '3.14'"
-source .venv/bin/activate # 之后的 python3 即 venv 的(每个新终端都要执行)
-```
-
-`backports.zstd` 是《王国之泪》的 zstd 字典需要的;其他游戏用不到。
-
-### 2. 你需要准备的文件
-
-三样东西,仓库里都不带:
-
-| 内容 | 来源 | 用途 |
-|---|---|---|
-| **`prod.keys`** | 从**你自己的机器**导出(见下) | 解密你的游戏 |
-| **游戏的 NSP** | 从你自己的卡带或 eShop 购买记录导出 | 供解包 |
-| **Xcode + iOS SDK** | App Store | 构建 App |
-
-`prod.keys` 是主机的密钥集——一个 `名字 = 十六进制值` 格式的文本文件(约 230 条:
-`master_key_xx`、`titlekek_xx`、`header_key`、`key_area_key_application_xx`……)。所有 Switch
-自制软件工具都读这个格式。它**不和某个游戏绑定**:一份 `prod.keys` 能解你所有的游戏。唯一
-要求是文件里包含游戏打包时代(固件世代)对应的密钥——新导出的一份覆盖所有零售游戏。
-
-放在哪里随意,用 `-k` 传路径即可:
-
-```bash
-# 任意布局,比如
-~/keys/prod.keys
-# 或者就放在游戏 NSP 旁边
-~/Games/Hades2/prod.keys
-```
-
-```bash
-python3 scripts/build_ipa_from_nsp.py ~/Games/Hades2 -k ~/keys/prod.keys
-```
-
-密钥的导出方式在 Switch 自制软件社区有完整文档(常见做法是在破解机上跑 Lockpick_RCM);
-本仓库不涉及也不携带这一步。两条来自真实导出文件的实用提示:
-
-- **格式错误的行。** 有的导出工具会写出十六进制值长度不对的行(真实案例:33 行长度错误的
- `master_kek_source_*`),解包工具会因此拒绝整个文件。删掉这些行,原文件留个备份。
-- **更新包。** 更新 NSP 的 ticket 可能带比本体更新的密钥世代。解包工具直接从每个 NSP 内部的
- common ticket 读 title key,所以实际使用中只要 `prod.keys` 不算太旧,两份都能解开——这里
- 实测过本体是世代 15、更新是世代 16,keys 文件只到 15,两个包都正常解出。
-
-### 3. 把 RomFS 打包成归档
-
-```bash
-python3 dm/tools/romfs_arc.py pack <RomFS 目录> <输出基路径> --shard-mib 200
-```
-
-`<RomFS 目录>` 是 `nx_extract` 解出来的那个目录(里面有 `Pack/`、`Banc/`、`Sound/` 等)。工具会写出
-`<基路径>.idx` 和 `<基路径>.00`、`.01`……文件按顶层目录分组切分,每片不超过 `--shard-mib`,
-所以一片里装的是一类内容。
-
-拷贝之前先验证:
-
-```bash
-python3 dm/tools/romfs_arc.py verify <基路径> <RomFS 目录> # 逐字节比对每个文件
-python3 dm/tools/romfs_arc.py list <基路径> [路径] # 列出某个目录
-```
-
-### 4. 构建 IPA
-
-主构建脚本**默认打瘦身 IPA**(不含 RomFS;App 从 `Documents/romfs` 读游戏文件),所以第 1 步
-已经产出。以后只想重新打包时:
-
-```bash
-GAME=<title id> W=<工作目录> PATCHED=<改写目录> \
- ROMFS=<RomFS 目录> MSL_IOS=<shader 目录> \
- dm/ios/tools/build_ipa.sh <输出.ipa>
-```
-
-`--full-romfs`(或 `DM_FULL_ROMFS=1`)把 RomFS 打进包里——上游行为,只对小体量游戏有意义。
-
-### 5. 把归档拷到手机
-
-整套放进 App 的 `Documents/romfs/`,保持基名不变:
-
-```
-Documents/romfs/romfs.idx
-Documents/romfs/romfs.00
-...
-Documents/romfs/romfs.125
-```
-
-App 会先找 `romfs.idx`(`dm/ios/Sources/main.m` 的 `romfs_locate`)。没有索引时会回退到普通目录树,
-所以对已有游戏没有任何影响。
-
-索引可以放在以下任一位置,读取层按顺序尝试:
-
-```
-<DM_ROMFS>.idx
-<DM_ROMFS>/romfs.idx
-<DM_ROMFS>/romfs/romfs.idx
-```
+在终端里手动构建见 [BUILDING.zh-CN.md](BUILDING.zh-CN.md)。
## 游玩
-**触屏操控。** 两种布局(点顶部中央的按钮切换):2D(左摇杆、A/B/X/Y、肩键、−/+)和 3D
-(增加十字键、右摇杆和 L3/R3)。未连接手柄时,触到控件以外的区域会送到游戏的触屏。
-
-**实体手柄**(GameController 框架:Xbox、PlayStation、Switch Pro 和 MFi 手柄都支持)连接后
-会完全隐藏触屏控件,断开时恢复;期间所有触摸都送到游戏的触屏。按键按位置映射,与 Switch
-手柄一致:下=B、右=A、左=Y、上=X,十字键和右摇杆同样保留。
-
-**不改包调设置:** `Documents/env.txt`,每行一个 `KEY=VALUE`。常用的:
+**在 Mac 上**,构建好的游戏带着封面出现在游戏库里,点 **Play** 启动。**启动选项**(按游戏保存,重新
+构建后仍然保留)可设置帧率、主机模式(底座或掌机)、渲染缩放和超分辨率、游戏语言、操控等;每项的
+作用见 [docs/settings.md](docs/settings.md)(英文)。手柄既能操作游戏,也能操作启动器。
-```
-DM_LANG=zh-Hans # 中文(默认 en-US)
-DM_FPS_TARGET=30 # 限帧(省电;默认用 profile 的 fps_target)
-DM_OPMODE=0 # 掌机模式:720p 渲染而不是底座的 1080p
-```
+**在 iPhone 上**,App 在游戏开始前显示同样的设置,点 **Play** 即可。触屏操控有 2D 和 3D 两种布局
+(点顶部中央的按钮切换),连接手柄(Xbox、PlayStation、Switch Pro、MFi)后触屏控件会隐藏。
+触屏、震动和体感见 [docs/playing.md](docs/playing.md)(英文)。新场景第一次出现时短促卡顿是正常的:
+App 会为它编译一次图形并记住。游戏数据(`romfs.img`)可以放在外置硬盘上,用「文件」App 选取。
-**Mac 上**,启动器的「启动选项」面板有同样的选项(游戏语言、帧率、主机模式等),按游戏保存,重新构建后仍然保留。
-面板里没有的设置,或想固定某项,可以写一个 `env.txt`,格式相同(`DM_LANG=zh-Hans`),放在两处之一:
+**游戏语言。** 默认英文。Mac 上用启动选项里的「游戏语言」一行。面板里没有的设置,可以写一个
+`env.txt`,每行 `KEY=VALUE`(例如 `DM_LANG=zh-Hans`),放在两处之一:
`~/Library/Application Support/nxnative/<title ID>/env.txt` 优先,重新构建后仍在;
-`<App>.app/Contents/Resources/dm/env.txt` 是 App 自带的。在加入语言选项之前构建的 App 需要重新构建一次才有该项。
+`<App>.app/Contents/Resources/dm/env.txt` 是 App 自带的。在加入语言选项之前构建的 Mac App 需要重新构建
+一次才有该项。iPhone 上同样的行写在 `Documents/env.txt` 里(`DM_FPS_TARGET=30` 限帧省电,
+`DM_OPMODE=0` 选掌机模式)。
-**存档和日志**在「文件」App 里该 App 名字下:`save/` 和 `log.txt`。出问题时把 `log.txt`
-发出来(上一次运行的是 `log.prev.txt`)。新场景第一次出现时短促卡顿是正常的:App 会为它
-编译一次图形并记住。
+**存档和日志。** 放在游戏库文件夹里的 Mac 游戏,存档和日志在 App 旁边(`log/<title ID>.log`);否则在
+`~/Library/Application Support/nxnative/<title ID>/` 和 `~/Library/Logs/nxnative/<title ID>.log`。
+iPhone 上在「文件」App 里该 App 名字下:`save/` 和 `log.txt`(上一次运行的是 `log.prev.txt`)。
-## 换其他游戏
+**报告问题。** 请用[问题表单](https://github.com/LNPANDY/NX2Apple/issues/new/choose)(游戏问题、构建问题、
+启动器问题)。表单会要你填游戏和 title ID、版本和设备、**设置 > 复制诊断信息**,以及游戏的日志;
+为什么需要见 [CONTRIBUTING.md](CONTRIBUTING.md)(英文)。附上完整 `log.txt` 的报告会优先处理。
+千万不要附上密钥、游戏文件或任何从游戏中提取的内容。
-归档格式里没有任何与具体游戏绑定的东西:打包工具遍历你给的目录,读取层在那棵树里查路径。换游戏只需要:
+## 游戏
-1. 用 `nx_extract` 解出新游戏的 NSP(上游脚本会自动做)。
-2. 用 `romfs_arc.py` 打包那个游戏的 `RomFS`。
-3. 用新的 `GAME=` profile 重新构建 IPA(默认即瘦身包)。
-4. 把新归档拷进 `Documents/romfs/`。
+共有 94 个游戏 profile。3 款在本 fork 完整验证(构建、安装、在手机上玩过),另有 45 款上游报告 iPhone
+可玩,其余的 profile 还没在手机上试过。其中几款:
-三点需要注意:
-
-- **分片数不能超过 256。** 读取层每个分片占一个 fd 槽位(`romfs_arc.h` 的 `MAX_SHARDS`)。
- 打包工具现在会拒绝写出超限的索引,并告诉你该用多大的 `--shard-mib`。《王国之泪》按 200 MiB
- 需要 126 片;体积约它两倍的游戏需要 256 MiB 一片。
-- **DLC 不走归档。** 追加内容仍然打进包里(`DmIOS.app/aoc/<index>/`),按目录挂载。多数 DLC
- 体积很小,不影响安装;如果又撞上安装上限,把 DLC 从包里去掉即可,代价是游戏里看不到那几个 DLC。
-- **`zip_store` 是每个游戏各自的。** profile 里列出已经是压缩格式、应当直接存储而不做 deflate 的
- 扩展名(《王国之泪》是 `.zs`、`.bwav`、`.mc`、`.webm`、`.metallib`)。这只影响装 shader 库和
- 表的那个包,与归档无关。
-
-上游测试列表里的游戏(4–6 GB)按 200 MiB 大概需要 20–30 片,远低于上限,内存占用也远低于
-《王国之泪》撞上的那个单 App 预算。
-
-## 相对上游的改动
-
-新增 5 个文件,修改 4 个。文件系统层保留原有的路径处理:归档打开时,`host_path_ex` 对归档挂载点上的
-条目返回一个合成路径(`@romfsarc:<guest 路径>`),`OpenFile` / `GetEntryType` / `OpenDirectory`
-和目录相关调用识别该前缀并转到归档层。归档条目的文件句柄用 bit 63 标记,不会与真实 fd 冲突;
-`ReadFile` 会按文件大小截断(分片是平铺容器,不截断的话越界读会读到下一个文件的字节)。
-
-| 文件 | 改动 |
-|---|---|
-| `dm/host/romfs_arc.h` | 新增 —— 归档格式与读取接口 |
-| `dm/host/romfs_arc.c` | 新增 —— mmap 索引、二分查找、按需打开分片 |
-| `dm/tools/romfs_arc.py` | 新增 —— pack / verify / list |
-| `dm/host/tests/t_romfs_arc.c` | 新增 —— 遍历整份归档、校验每个文件 |
-| `docs/ROMFS_ARCHIVE.md` | 新增 —— 格式与设计说明 |
-| `dm/host/hle_fs.c` | 挂载并路由归档路径 |
-| `dm/host/Makefile` | 编译 `romfs_arc.c` |
-| `dm/ios/Sources/main.m` | `romfs_locate` 接受 `romfs.idx` |
-| `dm/ios/tools/build_ipa.sh` | 默认瘦身包(`DM_FULL_ROMFS=1` = 上游完整包) |
-| `scripts/build_ipa_from_nsp.py` | `--work-dir`(构建目录可离开 NSP 所在文件夹);自动推导 `DOTNET_ROOT`(framework-dependent 的 `nx_extract` 在裸 shell 里缺它无法启动) |
-| `frontend/` | 新增 —— macOS 图形界面前端(见 [图形界面](#图形界面)) |
-
-挂载点按**目录**识别,而不是按名字:各游戏的挂载名不同(多数是 `rom`,《王国之泪》是 `content`)。
-
-## 支持的游戏
-
-本仓库自带 79 个游戏 profile。profile 决定了一个游戏能不能构建——build ID、内存布局、
-shader 表、每个游戏各自的开关;本 fork 在此基础上加了 RomFS 归档层,让大体积游戏能装得下。
-
-「需要的更新包」就是构建时严格校验的版本:更新包 NSP 的显示版本必须与 profile 注册的 build 一致
-(本体自身的版本无所谓——更新会叠加在本体上)。「无(v0)」= 只需本体。
-
-| 游戏 | Title ID | 需要的更新包 | 状态 |
+| | 游戏 | 运行于 | 状态 |
|---|---|---|---|
-| 超级马力欧 奥德赛 | `0100000000010000` | 1.4.1 (v393216) | 上游报告 iPhone 可玩 |
-| 宝可梦 晶灿钻石 | `0100000011D90000` | 1.3.0 (v393216) | 上游报告 iPhone 可玩 |
-| 逆转检察官 1&2 御剑精选集 | `010005501E68C000` | 1.0.0.2 (v131072) | 有 profile,未在手机上验证 |
-| 空洞骑士:丝之歌 | `010013C00E930000` | 1.0.30000 (v655360) | 有 profile,未在手机上验证 |
-| 数码宝贝物语 网络侦探 骇客追忆 | `010014E00DB56000` | 1.0.3 (v196608) | 有 profile,未在手机上验证 |
-| 超级马力欧兄弟 惊奇 | `010015100B514000` | 1.2.1 (v327680) | 上游报告 iPhone 可玩 |
-| 马力欧卡丁车 8 豪华版 | `0100152000022000` | 4.0.0 (v1441792) | 上游报告 iPhone 可玩 |
-| 人狼村之谜 | `010020400E1C2000` | 无(v0) | 有 profile,未在手机上验证 |
-| ANIMAL WELL | `010020D01AD24000` | 1.0.10 (v655360) | 上游报告 iPhone 可玩 |
-| 超级马力欧 3D世界 + 狂怒世界 | `010028600EBDA000` | 1.2.2 (v262144) | 上游报告 iPhone 可玩 |
-| 幽灵诡计 幻影侦探 | `010029B018432000` | 无(v0) | 上游报告 iPhone 可玩 |
-| 塞尔达无双 灾厄启示录 | `01002B00111A2000` | 1.3.0 (v327680) | 上游报告 iPhone 可玩 |
-| 蔚蓝 | `01002B30028F6000` | 1.4.1.1 (v589824) | 有 profile,未在手机上验证 |
-| 高级战争 1+2 重制版 | `0100300012F2A000` | 无(v0) | 上游报告 iPhone 可玩 |
-| 马力欧 + 疯狂兔子 星愿 | `0100317013770000` | 1.6.2225577 (v393216) | 有 profile,未在手机上验证 |
-| Return of the Obra Dinn | `010032E00E6E2000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
-| 太阁立志传 V DX | `0100346017304000` | 1.1.1 (v131072) | 上游报告 iPhone 触屏可玩 |
-| 大逆转裁判 1&2 成步堂龙之介的冒险 | `010036E00FB20000` | 无(v0) | 上游报告 iPhone 可玩 |
-| 最终幻想 战略版 伊瓦利斯战记 | `010038B015560000` | 1.4.0 (v393216) | 有 profile,未在手机上验证 |
-| 十三机兵防卫圈 | `01003FC01670C000` | 1.10 (v65536) | 上游报告 iPhone 可玩 |
-| Blasphemous 2 | `010040801A4C8000` | 1.0.8 (v524288) | 有 profile,未在手机上验证 |
-| 13 Sentinels: Aegis Rim (Japan) | `010045C014650000` | 无(v0) | 有 profile,未在手机上验证 |
-| 猎天使魔女 3 | `01004A4010FEA000` | 1.2.0 (v131072) | 上游报告 iPhone 可玩 |
-| 黑暗之魂 重制版 | `01004AB00A260000` | 1.0.3 (v196608) | 有 profile,未在手机上验证 |
-| 星之卡比 探索发现 | `01004D300C5AE000` | 1.1.0 (v65536) | 有 profile,未在手机上验证 |
-| 怪物火车 2 | `010051701FB46000` | 1.1.1 (v131072) | 上游报告 iPhone 可玩 |
-| 歧路旅人 0 | `01005270232F2000` | 1.0.5 (v327680) | 有 profile,未在手机上验证 |
-| 哈迪斯 | `0100535012974000` | 1.0.38233 (v589824) | 上游报告 iPhone 可玩 |
-| Unicorn Overlord (Asia) | `010054B01AD92000` | 1.05 (v262144) | 有 profile,未在手机上验证 |
-| 火焰纹章 风花雪月 | `010055D009F78000` | 1.2.0 (v327680) | 上游报告 iPhone 可玩 |
-| 尼尔 自动人形 寄叶终结版 | `010056B015FE8000` | 1.0.3 (v131072) | 上游报告 iPhone 可玩 |
-| 歧路旅人 | `010057D006492000` | 1.0.5 (v327680) | 有 profile,未在手机上验证 |
-| 女神异闻录 5 皇家版 | `01005CA01580E000` | 1.0.2 (v65536) | 上游报告 iPhone 可玩 |
-| 耀西的手工世界 | `01006000040C2000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
-| 最终幻想 共鸣 | `0100606026F12000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
-| 脑锻炼 大人的 Nintendo Switch 训练 | `0100620012D6E000` | 1.2.0 (v131072) | 有 profile,未在手机上验证 |
-| Persona 4 Golden | `010062B01525C000` | 1.0.2 (v131072) | 有 profile,未在手机上验证 |
-| Mario + Rabbids Kingdom Battle | `010067300059A000` | 1.9.589692 (v589824) | 有 profile,未在手机上验证 |
-| 圣兽之王 | `010069401ADB8000` | 1.05 (v262144) | 有 profile,未在手机上验证 |
-| Blasphemous | `0100698009C6E000` | 1.0.8 (v524288) | 有 profile,未在手机上验证 |
-| 真·女神转生 V Vengeance | `010069C01AB82000` | 1.0.3 (v196608) | 上游报告 iPhone 可玩 |
-| 任天堂明星大乱斗 特别版 | `01006A800016E000` | 13.0.5 (v2031616) | 上游报告 iPhone 可玩 |
-| 塞尔达传说 织梦岛 | `01006BB00C6F0000` | 1.1.0 (v131072) | 上游报告 iPhone 可玩 |
-| 勇者斗恶龙 XI S 寻觅逝去的时光 决定版 | `01006C300E9F0000` | 1.0.4 (v262144) | 有 profile,未在手机上验证 |
-| 集合啦!动物森友会 | `01006F8002326000` | 3.0.3 (v2228224) | **本 fork 已验证** —— 构建、安装、在 iPhone 上流畅运行;103,645 个文件归档成 72 片 |
-| AI 梦境档案 涅槃肇始 | `0100713016CCC000` | 1.0.2 (v131072) | 上游报告 iPhone 可玩 |
-| 异界锁链 | `01007300020FA000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
-| 异度神剑 3 | `010074F013262000` | 2.2.1 (v720896) | 有 profile,未在手机上验证 |
-| 猎天使魔女 | `010076F0049A2000` | 1.1 (v65536) | 上游报告 iPhone 可玩 |
-| 猎天使魔女 2 | `01007960049A0000` | 1.2 (v131072) | 上游报告 iPhone 可玩 |
-| 传送门 | `01007BB017812000` | 1.0.3 (v196608) | 上游报告 iPhone 可玩 |
-| 塞尔达传说 旷野之息 | `01007EF00011E000` | 1.9.0 (v1114112) | 上游报告 iPhone 可玩 |
-| BALL x PIT | `010086A022444000` | 1.293 (v393216) | 上游报告 iPhone 可玩 |
-| AI 梦境档案 | `010089B00D09C000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
-| 命运石之门 RE:BOOT | `01008BC024FDE000` | 1.0.3 (v131072) | 有 profile,未在手机上验证 |
-| 星之海 | `01008C0016544000` | 2.0.59001 (v786432) | 上游报告 iPhone 可玩 |
-| 塞尔达传说 智慧的再现 | `01008CF01BAAC000` | 1.1.0 (v196608) | 上游报告 iPhone 可玩 |
-| 十三机兵防卫圈(亚洲版) | `01008D7016438000` | 无(v0) | 上游报告 iPhone 可玩 |
-| 宝可梦 盾 | `01008DB008C2C000` | 1.3.2 (v458752) | 上游报告 iPhone 可玩 |
-| 密特罗德 生存恐惧 | `010093801237C000` | 2.1.0 (v327680) | 上游报告 iPhone 可玩 |
-| 超级马力欧 银河 | `010099C022B96000` | 1.3.1 (v327680) | 上游报告 iPhone 可玩 |
-| 奇诺比奥队长 宝物追踪 | `01009BF0072D4000` | 1.4.2 (v393216) | 有 profile,未在手机上验证 |
-| 大金刚国度 归乡 HD | `01009D901BC56000` | 1.1.0 (v65536) | 有 profile,未在手机上验证 |
-| 哈迪斯 II | `0100A00019DE0000` | 1.0.137848 (v1) | **本 fork 已验证** —— 构建、安装、在 iPhone 上运行;33 个文件的归档 |
-| 歧路旅人 II | `0100A3501946E000` | 1.1.1 (v131072) | 上游报告 iPhone 可玩 |
-| Pokémon Scarlet | `0100A3D008C5C000` | 无(v0) | 有 profile,未在手机上验证 |
-| 茶杯头 | `0100A5C00D162000` | 1.3.7 (v655360) | 有 profile,未在手机上验证 |
-| 火焰纹章 结合 | `0100A6301214E000` | 2.0.0 (v327680) | 上游报告 iPhone 可玩 |
-| Absolum | `0100A83022A22000` | 1.1.1 (v393216) | 有 profile,未在手机上验证 |
-| 勇者斗恶龙 VII 重制版 | `0100A9D01C446000` | 1.2.0 (v131072) | 有 profile,未在手机上验证 |
-| 宝可梦 剑 | `0100ABF008968000` | 1.3.2 (v458752) | 上游报告 iPhone 可玩 |
-| 怪物猎人 崛起 | `0100B04011742000` | 16.0.2 (v2228224) | 有 profile,未在手机上验证 |
-| 皮克敏 4 | `0100B7C00933A000` | 1.1.1 (v262144) | 上游报告 iPhone 可玩 |
-| FINAL FANTASY RESONANCE (Asian release) | `0100B8A026F14000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
-| NieR:Automata The End of YoRHa Edition | `0100B8E016F76000` | 1.0.3 (v131072) | 有 profile,未在手机上验证 |
-| 马力欧 VS 大金刚 | `0100B99019412000` | 1.0.1 (v65536) | 上游报告 iPhone 可玩 |
-| FINAL FANTASY X/X-2 HD Remaster | `0100BC300CB48000` | 无(v0) | 有 profile,未在手机上验证 |
-| 凯瑟琳 浓郁口感 | `0100BF00112C0000` | 1.0.1a (v131072) | 有 profile,未在手机上验证 |
-| 大金刚国度 热带冻结 | `0100C1F0051B6000` | 1.0.2 (v131072) | 有 profile,未在手机上验证 |
-| 三国志 8 REMAKE | `0100C2A01A730000` | 1.1.3 (v851968) | 上游报告 iPhone 可玩(需手柄) |
-| 小丑牌 | `0100CD801CE5E000` | 1.1.3 (v851968) | 上游报告 iPhone 可玩 |
-| FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition | `0100CE4010AAC000` | 1.0.3 (v196608) | 有 profile,未在手机上验证 |
-| Silver Pines | `0100D5B026844000` | 无(v0) | 有 profile,未在手机上验证 |
-| 节奏天国 Groove | `0100D9F01D474000` | 无(v0) | 有 profile,未在手机上验证 |
-| 路易吉洋馆 3 | `0100DCA0064A6000` | 1.4.0 (v327680) | 上游报告 iPhone 可玩 |
-| Patrick's Parabox | `0100E44016C22000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
-| 星露谷物语 | `0100E65002BB8000` | 1.6.15.13 (v1310720) | 上游报告 iPhone 可玩 |
-| Xenoblade Chronicles 2 | `0100E95004038000` | 2.1.0 (v983040) | 有 profile,未在手机上验证 |
-| 纸片马力欧 千年之门 | `0100ECD018EBE000` | 1.0.1 (v65536) | 有 profile,未在手机上验证 |
-| 塞尔达传说 王国之泪 | `0100F2C0115B6000` | 1.4.3 (v720896) | **本 fork 已验证** —— 构建、安装、在 iPhone 上运行;304,243 个文件归档成 127 片,逐字节校验通过 |
-| 宝可梦传说 Z-A | `0100F43008C44000` | 2.0.2 (v393216) | 有 profile,未在手机上验证 |
-| 脑力记忆训练学院 | `0100F5D01DA3A000` | 无(v0) | 有 profile,未在手机上验证 |
-| 超级马力欧 银河 2 | `0100FD8022DAA000` | 1.4.0 (v393216) | 有 profile,未在手机上验证 |
-| Xenoblade Chronicles: Definitive Edition | `0100FF500E34A000` | 1.1.2 (v196608) | 有 profile,未在手机上验证 |
-
-「本 fork 已验证」表示完整走通了整条链路:构建、装到 iPhone、运行,归档还逐字节比对过源文件。
-「上游报告 iPhone 可玩」是上游项目的结果,本 fork 未重新测试。只有 profile 不保证游戏能启动——
-游戏所需的宿主改动属于上游工作,本 fork 跟随上游。
-
-## 验证情况
-
-- **《王国之泪》**(0100F2C0115B6000,v1.0.0 + 更新 1.4.3):304,243 个文件打成 127 个文件;
- 304,243 个文件全部与源目录逐字节比对通过(`verify: OK`);游戏从归档正常运行于 macOS
- (30 fps,1,905 帧)。
-- **《哈迪斯 2》**(0100A00019DE0000,本体 + 更新 1.0.137848):5,258 个文件打成 33 个文件,
- 逐字节比对通过,游戏从归档正常运行于 macOS(2,100 帧,1,772 次归档读取)。更新包无需特殊
- 处理:`nx_extract` 本来就用 `OpenFileSystemWithPatch` 把更新层叠在本体上,解出的 RomFS
- ——也就是归档——就是合并结果。**在 iPhone 上可玩**(12 GB 设备,AltStore Classic 2.3),
- 前提是内存 entitlement 生效——见下。
-- C 读取层遍历全部 304,243 个《王国之泪》文件、2,667 个目录,耗时 7.6 秒。
-
-**jetsam 预算是大体积游戏的限制,而它是可以提高的。** 没有
-`com.apple.developer.kernel.increased-memory-limit` 时,iPhone 给这个 App 约 3,375 MB(12 GB
-设备实测:《王国之泪》进大地图时被杀,常驻 3,342 MB、余量 33 MB;渲染缩放降到 0.5 无改善,
-说明瓶颈在 guest 堆而不是 GPU)。App 请求了这个 entitlement,`build_ipa.sh` 把它嵌进占位用的
-ad-hoc 签名——无签名的二进制没有可供侧载工具读取 entitlement 的签名,不做这一步请求就会丢失。
-**AltStore Classic 2.2+**、**Impactor** 和 **Xcode + Personal Team** 会保留它;**SideStore**
-配合免费 Apple ID 需要对 App ID 做一次性修复;**Sideloadly** 不会。步骤和判断方法(log.txt 里
-resident + headroom:约 3,375 MB = 未生效,6–8 GB = 已生效)见
-[dm/ios/ENTITLEMENTS.md](dm/ios/ENTITLEMENTS.md)。
+| <img src="docs/images/zelda-tears-of-the-kingdom.jpg" width="96" alt=""> | 塞尔达传说:王国之泪 | Mac 和 iPhone | **本 fork 验证**:304,243 个文件,逐字节校验;约 17 GB |
+| <img src="docs/images/hades-ii.jpg" width="96" alt=""> | Hades II | Mac 和 iPhone | **本 fork 验证** |
+| <img src="docs/images/animal-crossing-new-horizons.jpg" width="96" alt=""> | 集合啦!动物森友会 | iPhone | **本 fork 验证**:流畅运行 |
+| <img src="docs/images/super-mario-odyssey.jpg" width="96" alt=""> | 超级马力欧 奥德赛 | iPhone | 上游报告可玩 |
+| <img src="docs/images/zelda-breath-of-the-wild.jpg" width="96" alt=""> | 塞尔达传说:旷野之息 | iPhone | 上游报告可玩;1.9.0 可 60 fps |
+| <img src="docs/images/mario-kart-8-deluxe.jpg" width="96" alt=""> | 马力欧卡丁车 8 豪华版 | iPhone | 上游报告可玩 |
+
+**[GAMES.zh-CN.md](GAMES.zh-CN.md)**(English: [GAMES.md](GAMES.md),带截图图库和每款的安装大小)
+有完整表格和每款游戏需要的更新包版本:更新包 NSP 的显示版本必须与 profile 一致,否则构建会提示。
## 限制
-- **只读。** 归档从不写入;存档和临时数据照旧走各自的挂载点。
-- **大小写敏感查找。** 名称按源目录树原样存储,所以宿主的 APFS 大小写不敏感别名机制对归档条目
- 不适用。
-- **符号链接在打包时展开。** 目前支持的游戏 RomFS 里没有符号链接。
-- **索引常驻内存。** 《王国之泪》是 28 MB(其中 17.9 MB 是名称)。分片不常驻。
-- **不做去重或压缩。** 分片是源字节原样,所以 `verify` 就是直接比对,重复打包的结果是确定的。
+- **只支持有 profile 的游戏。** 列表之外的游戏需要单独的 bring-up 工作;起点是
+ [docs/agents](docs/agents/README.md)(上游为其他 Switch 游戏写的指南,英文)。
+- **大体积游戏在 iPhone 上会碰到内存上限。** 没有 Increased Memory Limit entitlement 时 iOS 只给 App
+ 约 3.4 GB,不够《王国之泪》用。App 请求了它,AltStore Classic 2.2+、Impactor 和 Xcode + Personal Team
+ 会保留;SideStore 配合免费 Apple ID 需要对 App ID 做一次性修复,Sideloadly 会丢掉它
+ ([步骤](dm/ios/ENTITLEMENTS.md))。完整的测量见 [GAMES.zh-CN.md](GAMES.zh-CN.md#验证情况)。
+- **App 未签名。** 启动器和 iPhone 构建不会替你签名,需要你自己侧载。
+- **你自己的文件。** 不包含也不下载任何游戏数据、固件或密钥。
+- **旧的分片归档仍能加载。** 最早的 iPhone 构建把《王国之泪》打成 RomFS 分片归档(`romfs.idx`);现在
+ 构建写出单个 `romfs.img`,但旧归档的读取层仍然随附([docs/ROMFS_ARCHIVE.md](docs/ROMFS_ARCHIVE.md))。
+
+## 给开发者
+
+- **从源码构建:** [BUILDING.zh-CN.md](BUILDING.zh-CN.md)。**报告或修复问题:** [CONTRIBUTING.zh-CN.md](CONTRIBUTING.zh-CN.md)。
+- **本 fork 对上游改了什么:** 引擎(`dm/`、`scripts/`、`docs/`、`ref/`、`AGENTS.md`)就是 nxnative 在固定提交上的
+ 内容,加一组补丁,每个补丁写明本 fork 为什么带着它。见 [patches/README.md](patches/README.md);
+ `python3 scripts/patches.py status` 列出带着的全部补丁。每天一次的任务移动固定提交并开 pull request,
+ 某个补丁对不上时开一个点名该补丁的 issue。
+- **其他 Switch 游戏:** [docs/agents](docs/agents/README.md)(解包、二进制调查、bring-up)。
+- **版本历史:** [CHANGELOG.zh-CN.md](CHANGELOG.zh-CN.md)。
## 致谢
@@ -578,9 +143,9 @@ resident + headroom:约 3,375 MB = 未生效,6–8 GB = 已生效)见
- **[v0lumehi](https://github.com/v0lumehi)** —— **Mac 前端的启动器界面**(PR [#27](https://github.com/LNPANDY/NX2Apple/pull/27),40 个文件):游戏库、封面图、每游戏启动选项、真进度流、能真正结束整个构建进程组的 Stop。Mac 端从"一个构建表单"变成了"打开像一台 Switch 的启动器"的第一版。
- **[m1guelpf](https://github.com/m1guelpf)**(Miguel Piedrafita)—— 两个 HLE 修复(PR [#24](https://github.com/LNPANDY/NX2Apple/pull/24)、[#26](https://github.com/LNPANDY/NX2Apple/pull/26)):补上了 `EnableAlbumImageTakenNotification` 和 `CreateWithAdjustableSystemClock` 及其快照类型字节——两个原本会让游戏读到空指针的缺失条目,各带测试。
-想加入这个列表?上面的[参与贡献](#参与贡献着色器与新游戏)写了怎么开始;issue 里附上完整日志的报告和带测试的修复最快。
+想加入这个列表?[参与贡献](CONTRIBUTING.zh-CN.md#帮忙补充游戏)写了怎么开始;issue 里附上完整日志的报告和带测试的修复最快。
-所有模拟相关的工作都是别人的。本仓库在其之上增加了归档子系统:
+所有底层引擎的工作都是别人的。本仓库在其之上增加了启动器和补丁队列:
- **[nxnative](https://github.com/seedds/nxnative)**(MIT)—— 本仓库所基于的原生执行工具链:
NSO 重写器、Horizon 宿主层、NVN-on-Metal、各游戏 profile 和 iOS 外壳。
diff --git a/dm/fork_patches.txt b/dm/fork_patches.txt
index 54b48c8f..89b4b693 100644
--- a/dm/fork_patches.txt
+++ b/dm/fork_patches.txt
@@ -16,3 +16,4 @@ fork-docs
ref-hle-hid-d2r
fork-patches-stamp
nsp-dotnet-root-verify
+games-md-gallery
diff --git a/frontend/screenshots/gen_hero.py b/frontend/screenshots/gen_hero.py
index 732643e7..442c7ab1 100644
--- a/frontend/screenshots/gen_hero.py
+++ b/frontend/screenshots/gen_hero.py
@@ -20,10 +20,10 @@ CHROME = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
def repo_numbers() -> tuple[int, int]:
- """(game profiles, verified on an iPhone): the dm/games/0100… folders, and README.md's games
+ """(game profiles, verified on an iPhone): the dm/games/0100… folders, and GAMES.md's games
table rows that say they were verified."""
games = sum(1 for d in (REPO / 'dm/games').iterdir() if d.is_dir() and d.name.startswith('0100'))
- readme = (REPO / 'README.md').read_text(encoding='utf-8')
+ readme = (REPO / 'GAMES.md').read_text(encoding='utf-8')
verified = sum(1 for ln in readme.splitlines()
if ln.startswith('| ') and ln.count('`') >= 2
and ('**Verified here**' in ln or 'Verified —' in ln))
diff --git a/patches/0024-games-md-gallery.patch b/patches/0024-games-md-gallery.patch
new file mode 100644
index 00000000..f3e813db
--- /dev/null
+++ b/patches/0024-games-md-gallery.patch
@@ -0,0 +1,111 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: v0lumehi <[email protected]>
+Date: Wed, 28 Oct 2026 18:32:25 +0100
+Subject: [PATCH] The games gallery is written to GAMES.md, and the release
+ history lives in CHANGELOG.md
+
+README.md is the player's page and stays short: docs_gallery.py writes the gallery into GAMES.md, and RELEASE-NOTES-GUIDE.md names CHANGELOG.md for the update-history table.
+
+Upstream-Status: fork-only
+Reason: README is the fork's short player page: the games gallery is written to GAMES.md (it would be most of the README) and the update history is CHANGELOG.md
+Issue: LNPANDY/NX2Apple#123
+
+---
+ dm/tools/docs_gallery.py | 16 ++++++++--------
+ dm/tools/tests/test_docs.py | 4 ++--
+ docs/RELEASE-NOTES-GUIDE.md | 2 +-
+ 3 files changed, 11 insertions(+), 11 deletions(-)
+
+diff --git a/dm/tools/docs_gallery.py b/dm/tools/docs_gallery.py
+index 38280413..5d5c78da 100644
+--- a/dm/tools/docs_gallery.py
++++ b/dm/tools/docs_gallery.py
+@@ -1,15 +1,15 @@
+ #!/usr/bin/env python3
+-# Writes the games gallery in README.md (between its gallery markers) from docs/images/gallery.tsv: one cell per row of the table, three to a row, in the table's order.
++# Writes the games gallery in GAMES.md (between its gallery markers) from docs/images/gallery.tsv: one cell per row of the table, three to a row, in the table's order.
+ # The table is the source: a new game is a row in it (usually at the end), so two pull requests that each add a game change one line each instead of moving every cell after
+ # the first one; .gitattributes merges the table with the union driver. Columns: image (a file in docs/images), name (the caption and the image's alt text), note (the small
+ # line under it, in small print like the caption: the IPA's size, then " · " and a remark if any; omit when the size is unknown) and, optionally, the base game's title ID, which links to its game note.
+-# Run it after changing the table; --check only reports whether README.md is current (dm/tools/tests/test_docs.py runs it).
++# Run it after changing the table; --check only reports whether GAMES.md is current (dm/tools/tests/test_docs.py runs it).
+ # Usage: docs_gallery.py [--check]
+ import html, pathlib, re, sys
+
+ REPO = pathlib.Path(__file__).resolve().parents[2]
+ TABLE = REPO / 'docs' / 'images' / 'gallery.tsv'
+-OUT = REPO / 'README.md'
++OUT = REPO / 'GAMES.md'
+ BEGIN = '<!-- gallery: written by dm/tools/docs_gallery.py from docs/images/gallery.tsv; change the table, then run it -->'
+ END = '<!-- end of gallery -->'
+ PER_ROW = 3
+@@ -40,7 +40,7 @@ def cell(image, name, note, tid):
+ image, name, note = (html.escape(s, quote=False).replace('"', '&quot;') for s in (image, name, note))
+ caption = f'<a href="dm/games/{tid}/README.md">{name}</a>' if tid else name
+ detail = f'<br>{note}' if note else '' # a game whose IPA size is still open has only its caption
+- # All in small print: GitHub keeps its own line height in a README, so smaller text is what makes the captions compact.
++ # All in small print: GitHub keeps its own line height in a page, so smaller text is what makes the captions compact.
+ return f'<td align="center" valign="top" width="33%"><img src="docs/images/{image}" width="256" alt="{name}"><br><sub><b>{caption}</b>{detail}</sub></td>'
+
+
+@@ -49,21 +49,21 @@ def gallery():
+ lines = ['<table>']
+ for i in range(0, len(r), PER_ROW):
+ row = [cell(*x) for x in r[i:i + PER_ROW]]
+- lines += ['<tr>'] + row + ['<td></td>'] * (PER_ROW - len(row)) + ['</tr>'] # a short last row is filled with empty cells, as README had it
++ lines += ['<tr>'] + row + ['<td></td>'] * (PER_ROW - len(row)) + ['</tr>'] # a short last row is filled with empty cells, as the page had it
+ return '\n'.join(lines + ['</table>'])
+
+
+ def readme():
+ text = OUT.read_text(encoding='utf-8')
+- if text.count(BEGIN) != 1 or text.count(END) != 1: sys.exit(f'README.md: the gallery markers ({BEGIN} … {END}) must appear once each')
++ if text.count(BEGIN) != 1 or text.count(END) != 1: sys.exit(f'GAMES.md: the gallery markers ({BEGIN} … {END}) must appear once each')
+ head, rest = text.split(BEGIN)
+- if END not in rest: sys.exit('README.md: the gallery end marker must follow the begin marker')
++ if END not in rest: sys.exit('GAMES.md: the gallery end marker must follow the begin marker')
+ return head + BEGIN + '\n' + gallery() + '\n' + END + rest.split(END, 1)[1]
+
+
+ if __name__ == '__main__':
+ text = readme()
+ if '--check' in sys.argv[1:]:
+- if OUT.read_text(encoding='utf-8') != text: sys.exit('README.md: the gallery is out of date: run dm/tools/docs_gallery.py')
++ if OUT.read_text(encoding='utf-8') != text: sys.exit('GAMES.md: the gallery is out of date: run dm/tools/docs_gallery.py')
+ else:
+ OUT.write_text(text, encoding='utf-8')
+diff --git a/dm/tools/tests/test_docs.py b/dm/tools/tests/test_docs.py
+index 350f7be9..ce6f40ed 100644
+--- a/dm/tools/tests/test_docs.py
++++ b/dm/tools/tests/test_docs.py
+@@ -1,7 +1,7 @@
+ """The repository's own Markdown stays navigable: every relative link and #anchor resolves (GitHub's heading anchors), every game profile has its note
+ (dm/games/<id>/README.md) and a row in the games table of dm/games/README.md, the symptom index (docs/agents/symptoms.md) is the one dm/tools/docs_symptoms.py writes from
+ docs/reference, the patch index (docs/agents/game-patches.md) is the one dm/tools/docs_patches.py writes from the patch files, host tables and profiles, and the entry points stay short: AGENTS.md at most 1,500 words, each numbered guide in docs/agents at most 6,000 (a new finding goes into a game note or a
+-reference, not into these), and README's games gallery is the one dm/tools/docs_gallery.py writes from docs/images/gallery.tsv. Third-party trees are left out. No game files needed."""
++reference, not into these), and GAMES.md's games gallery is the one dm/tools/docs_gallery.py writes from docs/images/gallery.tsv. Third-party trees are left out. No game files needed."""
+ from pathlib import Path
+ import re
+ import subprocess
+@@ -95,7 +95,7 @@ class PatchIndex(unittest.TestCase):
+
+ class Gallery(unittest.TestCase):
+ def test_gallery_is_current(self):
+- self.assertEqual(docs_gallery.OUT.read_text(encoding='utf-8'), docs_gallery.readme(), 'README.md: the gallery is out of date: run dm/tools/docs_gallery.py')
++ self.assertEqual(docs_gallery.OUT.read_text(encoding='utf-8'), docs_gallery.readme(), 'GAMES.md: the gallery is out of date: run dm/tools/docs_gallery.py')
+
+ def test_plain_text_captions_and_unknown_size(self):
+ image = docs_gallery.rows()[0][0]
+diff --git a/docs/RELEASE-NOTES-GUIDE.md b/docs/RELEASE-NOTES-GUIDE.md
+index ba1f3323..a8378ef2 100644
+--- a/docs/RELEASE-NOTES-GUIDE.md
++++ b/docs/RELEASE-NOTES-GUIDE.md
+@@ -75,7 +75,7 @@ changing the template means checking that sheet's tests too.
+
+ ## Where the text comes from
+
+-- `README.md` and `README.zh-CN.md` share an update-history table; a release row goes in both, the
++- `CHANGELOG.md` and `CHANGELOG.zh-CN.md` share an update-history table; a release row goes in both, the
+ English one first (it is the canonical project history), then translated.
+ - The release body itself is written once, in both languages, and is what `gh release edit
+ --notes-file` takes. Keep the file in `/tmp` while working; the release is the record.
diff --git a/patches/series b/patches/series
index 1a2e68ec..01b3b121 100644
--- a/patches/series
+++ b/patches/series
@@ -17,3 +17,4 @@
0016-ref-hle-hid-d2r.patch
0017-fork-patches-stamp.patch
0018-nsp-dotnet-root-verify.patch
+0024-games-md-gallery.patch