Skip to content

Route C M1: the game's modules as a framework (opt-in) - #144

Closed
LNPANDY wants to merge 7 commits into
mainfrom
route-c-m1
Closed

LNPANDY wants to merge 7 commits into
mainfrom
route-c-m1

Conversation

@LNPANDY

@LNPANDY LNPANDY commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

What and why

Route C M1 is opt-in: nothing changes unless DM_FRAMEWORK=1 is asked for. With the switch, the game's rewritten modules compile into DmIOS.app/Frameworks/DmGame.framework instead of the executable. The app dlopens it at launch, takes its mach header with dlsym + dladdr, and the loader reads __TEXT,__dm<mod>x0, __DM<mod>W,__img, __TEXT,__dm<mod>x1 and __DATA,__dm_nro_tab from it. Without the switch, build_ipa.sh runs the same xcodegen generate -q and the same pack as before, no Gen/framework/ is generated, no framework is signed, and the IPA has no Frameworks/. dm/ios/project.yml is not edited. In the loader, IMAGE_MH still defaults to &_mh_execute_header. Every new block in main.m is behind DM_FRAMEWORK_BUILD, which only project-framework.yml defines.

This is the off-device half of the milestone in docs/launcher-c-plan.md. The real payload is still unproven until the device run below.

Who continues this

@LNPANDY wrote it and agreed that @v0lumehi continues the branch (rebase, patch numbers, upstream, off-device checks). The device run stays with the owner. The commits Andy wrote keep him as author, and the force push to route-c-m1 replaced the 2026-10-28 state with the same changes on current main.

Patches (new numbers)

Main moved to pin ee6648cb and patches up to 0031, and open PRs claim 0032 and 0033, so the old 0020 to 0023 and 0025 became 0034 to 0038, in the same order. The one conflict on the rebase was in main.m and build_ipa.sh (main's per-game data folder, cheats and DMCommit lines), resolved by keeping both sides. A FW_SLIM variable in build_ipa.sh is renamed FW_COPY_ROMFS (it held DM_COPY_ROMFS's value, so the old name read inverted, the first item in the earlier review notes).

patch contents Upstream-Status
0034-route-c-loader-image-header loader_image.h, the settable IMAGE_MH in loader.c forwarded seedds/nxnative#729
0035-route-c-game-framework project-framework.yml, DmGameMarker.m, FrameworkBootstrap, main.m blocks fork-only
0036-route-c-framework-build build_ipa.sh DM_FRAMEWORK=1, gen_manifest.py, NSP --framework, compile_check.py fork-only
0037-route-c-framework-tests packaging, link and --prepare-xcode --framework tests fork-only
0038-dm-framework-env-switch-row the DM_FRAMEWORK row in docs/env_switches.tsv fork-only

No patch is pending. .github/workflows/tests.yml (the link test in the ios-build job) is not vendored, so it is an ordinary commit by Andy.

Upstream first, per patch

Checked off-device

On route-c-m1 (main df713726 + this PR), in a worktree on the NX volume, Xcode 27.1 and XcodeGen:

  • python3 scripts/patches.py check: ok, 26 patches apply to ee6648cb and give the committed vendored tree (2441 files). patches.py status lists the five route C patches as above.
  • bash -n dm/ios/tools/build_ipa.sh: ok.
  • GAME=010015100B514000 python3 dm/ios/tools/compile_check.py: (default): 188 files, 0 failed and (DM_FRAMEWORK_BUILD=1): 188 files, 0 failed.
  • python3 -m unittest discover -s dm/ios/tests: 51 tests OK (1 skipped, the case-sensitive disk image test that needs hdiutil create). It includes test_framework_link.py (xcodebuild -target DmGame from a synthetic Gen, otool -l shows the module sections of the main and the NRO module, __DATA,__dm_nro_tab, install name @rpath/DmGame.framework/DmGame, the tables, profile.tsv and game.manifest.json at the framework root), test_framework_build.py (the stand-in framework is packed at Frameworks/DmGame.framework, verifies with codesign -vvv --verify --strict, carries no entitlements, the app executable keeps the Increased Memory Limit request, a default pack has no Frameworks/ entry, --prepare-xcode picks project-framework.yml only with the switch) and test_xcode_workflow.py.
  • python3 -m unittest discover -s scripts/tests: 40 tests OK. dm.tools.tests.test_env_switches and dm.tools.tests.test_docs: OK. dm/tools/env_switches.py --check passes with the DM_FRAMEWORK row.
  • GAME=010015100B514000 python3 dm/ios/tools/build_smoke.py: the default project builds and stages its resources (iOS smoke build passed).
  • CI on this PR: see the checks below.

Not checked: the device run (why this stays draft)

Off-device tests cannot prove vm_remap of the framework's signed __TEXT pages (copy=FALSE) or getsectiondata on a dlopened dylib. M1's acceptance ends on a phone, and the owner does it.

Test game: Breath of the Wild (01007EF00011E000, profile v1114112, modules main subsdk0 sdk), because it is the only game with a build folder on the Mac that has a profile and is not huge (13.5 GB base plus a 0.9 GB update, the build folder is /Volumes/NX/games/Zelda Breath of the Wild [01007EF00011E000]/01007EF00011E000_build). Hades has smaller NSPs but no build yet. SSBU (01006A800016E000, for the NRO check) is only NSZ and NSP files with no build folder.

I did not build the framework IPA. The build folder's iOS shader libraries are for an older chain (b-157e1b96c8da, this tree wants b3ca4b7c621f), so the build would redo the iOS shader stage, which took 27 minutes in the last cold BotW run (about 35 minutes with the app build), over the half hour I allowed.

Steps (run from this branch's worktree, writing to an APFS clone so the real build folder stays untouched):

SRC="/Volumes/NX/games/Zelda Breath of the Wild [01007EF00011E000]"
M1=/Volumes/NX/teststand/m1 && mkdir -p $M1 && cp -cR "$SRC/01007EF00011E000_build" $M1/botw_build
printf 'DM_LOADHASH=1\n' > $M1/loadhash.env
KEYS=/Volumes/NX/keys/prod.keys
# 1. the framework IPA (slim: the RomFS stays out, it is pushed once)
python3 scripts/build_ipa_from_nsp.py "$SRC" -k $KEYS --work-dir $M1/botw_build --romfs separate --framework --env-file $M1/loadhash.env -o $M1/BotW-framework.ipa
# 2. the default IPA, same build folder (the shader stage is then cached)
python3 scripts/build_ipa_from_nsp.py "$SRC" -k $KEYS --work-dir $M1/botw_build --romfs separate --env-file $M1/loadhash.env -o $M1/BotW-default.ipa
# 3. off-device: only the framework IPA has Frameworks/
unzip -l $M1/BotW-default.ipa   | grep -c 'Frameworks/DmGame.framework'   # 0
unzip -l $M1/BotW-framework.ipa | grep -c 'Frameworks/DmGame.framework'   # more than 0

On the phone (owner), for each IPA in turn: install, push the RomFS once with the scripts/push_romfs.sh line the build prints, start the game to the title screen, then copy Documents/log.txt out. Compare:

grep -h 'DM_LOADHASH' log-default.txt   | sed 's/^\[[^]]*\] *//' | sort > loadhash-default.txt
grep -h 'DM_LOADHASH' log-framework.txt | sed 's/^\[[^]]*\] *//' | sort > loadhash-framework.txt
diff loadhash-default.txt loadhash-framework.txt && echo identical

The framework log must also show boot: game framework <path>, the dlopen handle, the image base and each module's base and size. For the NRO check, build SSBU the same way (--framework, its NSP folder) and look for __DATA,__dm_nro_tab and a working nro.tsv in its log. iOS 26 and 27 if both are at hand.

Notes for review

  • gen_manifest.py writes "launcher": "dm/launcher.json", while the same build removes Gen/framework/dm/launcher.json from the framework (the app's copy serves it). Nothing reads the manifest in M1, so M2 should make the key true.
  • project-framework.yml repeats project.yml's app settings on purpose (the default template stays untouched), so the two will drift unless M2 or M3 fold the shared part into an xcconfig.

Scope

  • Vendored changes are carried as patches (patches/0034 to 0038, headers filled, no pending), scripts/patches.py check is green
  • No keys, game files or data extracted from a game

@LNPANDY

LNPANDY commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Handoff note (for whoever continues this PR). The implementation agent stopped here; everything is on disk and in git.

Where the work is

  • Worktree: /Users/hejie/ZCodeProject/nxnative-m1-route-c, branch route-c-m1.
  • Local commits (not pushed yet): fb1ebc66 settable image header · b51287fb DmGame.framework as the module container · fad04f94 DM_FRAMEWORK=1 in build_ipa.sh / NSP script / compile_check · a17f3bb2 tests · 6a09426b the four patches.
  • Pushed and visible in this PR: the earlier 3b169b0d state (before the patch-queue rebase). The worktree is 5 commits behind origin/main and 14 ahead.

What is done

  • dm/host/loader_image.h + a settable IMAGE_MH in loader.c (default &_mh_execute_header; force_init()/__data,swforce untouched).
  • dm/ios/framework/DmGameMarker.m, dm/ios/Sources/FrameworkBootstrap.{h,m}; main.m's DM_FRAMEWORK_BUILD block (DM_PROFILE first, bootstrap before preload, <framework>/dm for argv[1] and DM_NVN_SHMAP).
  • dm/ios/project-framework.yml, build_ipa.sh framework mode (Gen/framework, sign order), scripts/build_ipa_from_nsp.py --framework, compile_check.py second pass, gen_manifest.py.
  • Tests: test_framework_build.py, test_framework_link.py, test_xcode_workflow.py extension.
  • Series: 0020-route-c-loader-image-header, 0021-route-c-game-framework, 0022-route-c-framework-build, 0023-route-c-framework-tests (each with Upstream-Status/Reason/Issue).

What remains (in order)

  1. Wait for Patch queue: patches.py absorb for direct edits to vendored files, and a check that says what to run (builds on #147) #148 (patch-queue repair) and the follow-up that drops patch 0019 + absorbs docs/launcher-c-plan.md; then git -C <worktree> fetch origin && git rebase origin/main.
  2. Do NOT add a fifth patch for docs: the dlopen probe passed on a device — route C's gate is open #139's docs — they land through the queue repair.
  3. python3 scripts/patches.py check must pass (it currently reports only docs/WORK-IN-PROGRESS.md and docs/probe-dlopen.md on main, unrelated to these patches). Then: bash -n dm/ios/tools/build_ipa.sh, GAME=010015100B514000 python3 dm/ios/tools/compile_check.py and the same with DM_FRAMEWORK_BUILD=1, python3 -m unittest discover -s dm/ios/tests, python3 -m unittest discover -s scripts/tests.
  4. Push, update this PR body with the commands and results, keep it draft.
  5. The acceptance that cannot be done off-device: sideload a DM_FRAMEWORK=1 IPA and check the log (framework path/handle/image base/module bases), DM_LOADHASH=1 equal to a default build, and an NRO game showing __DATA,__dm_nro_tab. Only the owner can run that.

LNPANDY added a commit that referenced this pull request Oct 28, 2026
The vendored tree is generated from seedds at .upstream-ref plus patches/, so
route C M1 is four format-patches with the required header (Upstream-Status:
pending; Reason: route C M1: game modules as an opt-in framework; Issue
#144):

  0020-route-c-loader-image-header   dm_set_game_image_header and loader.c's
                                     settable IMAGE_MH
  0021-route-c-game-framework        project-framework.yml, DmGameMarker.m,
                                     FrameworkBootstrap and main.m's
                                     DM_FRAMEWORK_BUILD blocks
  0022-route-c-framework-build       build_ipa.sh DM_FRAMEWORK=1, gen_manifest.py,
                                     the NSP script's --framework and
                                     compile_check.py's second pass
  0023-route-c-framework-tests       the framework packaging/link tests and
                                     --prepare-xcode --framework

series and dm/fork_patches.txt list them. `scripts/patches.py apply` reproduces
the committed vendored tree; `check` applies all 23 patches to 062cd06 and
reports only docs/WORK-IN-PROGRESS.md and docs/probe-dlopen.md, which main's PR
#139 (862e937) edited without a patch (the same two lines on plain main).
@LNPANDY

LNPANDY commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Main is consistent again (#147 merged): patches.py check passes on 062cd06 with 18 patches, and the two doc differences you saw are gone. You can rebase route-c-m1 onto main now — your four patches then apply on top, and check should go green with no fifth patch. Stay draft until the device run.

LNPANDY added a commit that referenced this pull request Oct 28, 2026
The vendored tree is generated from seedds at .upstream-ref plus patches/, so
route C M1 is four format-patches with the required header (Upstream-Status:
pending; Reason: route C M1: game modules as an opt-in framework; Issue
#144):

  0020-route-c-loader-image-header   dm_set_game_image_header and loader.c's
                                     settable IMAGE_MH
  0021-route-c-game-framework        project-framework.yml, DmGameMarker.m,
                                     FrameworkBootstrap and main.m's
                                     DM_FRAMEWORK_BUILD blocks
  0022-route-c-framework-build       build_ipa.sh DM_FRAMEWORK=1, gen_manifest.py,
                                     the NSP script's --framework and
                                     compile_check.py's second pass
  0023-route-c-framework-tests       the framework packaging/link tests and
                                     --prepare-xcode --framework

series and dm/fork_patches.txt list them. `scripts/patches.py apply` reproduces
the committed vendored tree; `check` applies all 23 patches to 062cd06 and
reports only docs/WORK-IN-PROGRESS.md and docs/probe-dlopen.md, which main's PR
@LNPANDY

LNPANDY commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Both queue repairs landed (#147 drops the revoked prune patch; #148 adds patches.py absorb and moves docs/probe-dlopen.md into 0014). patches.py check is green on main with 18 patches. Rebase route-c-m1 onto main now: your four patches then follow the refreshed 0014/0015, and the check should pass with no fifth patch. Still draft until the device run.

@v0lumehi

Copy link
Copy Markdown
Collaborator

For M2: would you like me to take the shell's UI (the library, game tiles, the per-game states playable / needs data / needs framework / broken, the data picker) as a view-only PR with mock data, in the Mac launcher's look, the way the onboarding was done (#119)? You'd keep the wiring (dlopen, manifest, GameData.m), and the views would plug into it through a small driver protocol. Per-game settings would stay upstream's Launcher.swift reading the game's launcher.json, as in your plan.

LNPANDY added a commit that referenced this pull request Oct 28, 2026
The vendored tree is generated from seedds at .upstream-ref plus patches/, so
route C M1 is four format-patches with the required header (Upstream-Status:
pending; Reason: route C M1: game modules as an opt-in framework; Issue
#144):

  0020-route-c-loader-image-header   dm_set_game_image_header and loader.c's
                                     settable IMAGE_MH
  0021-route-c-game-framework        project-framework.yml, DmGameMarker.m,
                                     FrameworkBootstrap and main.m's
                                     DM_FRAMEWORK_BUILD blocks
  0022-route-c-framework-build       build_ipa.sh DM_FRAMEWORK=1, gen_manifest.py,
                                     the NSP script's --framework and
                                     compile_check.py's second pass
  0023-route-c-framework-tests       the framework packaging/link tests and
                                     --prepare-xcode --framework

series and dm/fork_patches.txt list them. `scripts/patches.py apply` reproduces
the committed vendored tree; `check` applies all 23 patches to 062cd06 and
reports only docs/WORK-IN-PROGRESS.md and docs/probe-dlopen.md, which main's PR
@v0lumehi

v0lumehi commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

@LNPANDY, a note on where these patches go, for when this continues after the device run.

All five patches (0020 to 0023 and the env-switch row) carry Upstream-Status: pending. Under the queue's rule in patches/README.md, a change that belongs upstream goes to seedds/nxnative as a pull request first and is carried here as forwarded seedds/nxnative#N, and pending is not meant to stay. A part upstream does not want becomes fork-only, with the reason in Reason:.

Most of this looks upstream-shaped to me:

  • the settable IMAGE_MH in loader.c with loader_image.h (a small, default-off change that any embedder of the host can use)
  • the DM_FRAMEWORK=1 mode in build_ipa.sh, gen_manifest.py, the NSP script's --framework and the second compile_check.py pass
  • the framework tests and the DM_FRAMEWORK row in docs/env_switches.tsv

FrameworkBootstrap and project-framework.yml could go either way, depending on whether @seedds wants the framework container in the iOS app itself. Asking once, with the loader change as a first small PR, would settle it, and the bridge here then shrinks on the next bump.

One more thing for the rebase: the env-switch patch is numbered 0025, and main now has 0025-cloud-saves, so it needs a new number.

@v0lumehi

Copy link
Copy Markdown
Collaborator

@LNPANDY as agreed, we're continuing M1 from here so the shell (#226, views and host layer done, launching behind a stub) can move on to M2. Plan: rebase onto current main, renumber the five patches to 0034 to 0038 (0032 and 0033 are claimed by open PRs), keep your authorship on the patches you wrote, send the generic parts upstream first (the settable image header at least) so the patches become forwarded instead of pending, and get the off-device checks of the plan green. The device run (byte-identical DM_LOADHASH against the default build, an NRO game) stays as the acceptance step before M2. It stays your PR and a draft until then.

LNPANDY and others added 7 commits October 30, 2026 16:14
The iOS loader reads the game's embedded module sections (__TEXT,__dm<mod>x0, __DM<mod>W,__img, __TEXT,__dm<mod>x1 and the
packed NRO sections) from a fixed &_mh_execute_header, so they must be linked into the app executable. An embedder that links
them into another image of the app (a framework it dlopen()s from its signed bundle) had no way to say so.

dm_set_game_image_header() (loader_image.h) names that image's mach header. IMAGE_MH, used by map_image() and nro_pieces(),
reads it, and unset it is still &_mh_execute_header, so every existing build behaves exactly as before. The host's own tables
(__DATA,swforce in force_init(), __DATA,swhle in hle.c) stay the executable's. Nothing calls the setter in this change.

Checked: make -C dm/host/tests GAME=010015100B514000 run (includes t_nro and t_symbols, which compile loader.c), and
lint_python.py (no Python touched, 0 new findings).
project-framework.yml is the same app target as project.yml without Gen/embed.S
(no embedded modules), plus a DmGame framework target that carries Gen/embed.S and
the marker symbol: embed: true, link: false (the app dlopens it), app rpath
@executable_path/Frameworks, resources Gen/framework/{dm,profile.tsv,
game.manifest.json}. Its framework target gets only gen_embed.py's segment
permissions as link flags (Gen/framework.xcconfig); it links no host framework and
defines no module (DEFINES_MODULE NO: nothing imports it).

DmGameMarker.m exports dmgame_image_marker, the symbol dlsym/dladdr name the
image by. FrameworkBootstrap.m dlopens the framework from the app bundle, dlsyms
the marker, takes the image base with dladdr and hands it to the loader; a failure
is a [RED] line with the dlerror text. Under DM_FRAMEWORK_BUILD (only this project
sets it) main.m points DM_PROFILE at the framework's profile.tsv before the first
dm_profile() call, opens the framework before dm_host_preload_start(), and points
argv[1] and DM_NVN_SHMAP at <framework>/dm; DM_FONT_DIR stays the app's.

Route C M1, docs/launcher-c-plan.md.
build_ipa.sh's framework mode generates Gen/framework/{dm,profile.tsv,
game.manifest.json} and Gen/framework.xcconfig after Gen/dm is complete, runs
xcodegen with project-framework.yml, checks the app embedded DmGame.framework, and
signs it ad-hoc before the app's executable (no entitlements on the framework: a
dylib cannot hold them). Without DM_FRAMEWORK the script runs the same xcodegen
command as before, and pack_ipa.py is unchanged: the framework rides in the app
tree walk. gen_manifest.py writes the plan's game.manifest.json schema.
build_ipa_from_nsp.py --framework sets DM_FRAMEWORK=1 (refused for the Mac
platforms). compile_check.py compiles every source twice, the second time with
DM_FRAMEWORK_BUILD=1, so main.m's dlopen path is checked without Xcode.

Route C M1, docs/launcher-c-plan.md.

The manifest block's FW_SLIM is renamed FW_COPY_ROMFS: it holds DM_COPY_ROMFS's value (YES = the RomFS is packed), so the old name read inverted.
…xcode --framework

test_framework_build.py: gen_manifest.py's schema and refusals; build_ipa.sh's
--prepare-xcode copies project-framework.yml in with DM_FRAMEWORK=1 and project.yml
without it; on a stand-in app and framework, the framework is packed at
Frameworks/DmGame.framework with its resources, its signature carries no
entitlements, the app's keeps the Increased Memory Limit request, and a default
pack has no Frameworks/ entry.

test_framework_link.py (skipped without XcodeGen and an iPhoneOS SDK) builds the
DmGame target from a synthetic Gen with two stand-in modules and reads it back with
otool: __TEXT,__dm<mod>x0, __DM<mod>W,__img, __TEXT,__dm<mod>x1 for each, the NRO
pieces and __DATA,__dm_nro_tab, install name @rpath/DmGame.framework/DmGame, and
the tables/profile/manifest at the framework's root. The generated project shows
the app's Embed Frameworks phase and @executable_path/Frameworks rpath.

test_xcode_workflow.py: --prepare-xcode --framework passes DM_FRAMEWORK=1 to the
build. CI runs the link test in the ios-build job, which installs XcodeGen.

Route C M1, docs/launcher-c-plan.md.
`build_ipa.sh` reads DM_FRAMEWORK (and the NSP script sets it), so
dm/tools/env_switches.py --check lists it as a switch the code reads but
docs/env_switches.tsv does not describe. One row, class `switch`, with
what `=1` does and that the default keeps the in-executable build.
XcodeGen and xcodebuild of the DmGame framework target from a synthetic Gen/. test_framework_build.py's packaging half runs in tool-tests, its link half needs xcodegen, installed only in this job.
The loader's settable image header is forwarded as seedds/nxnative#729. The game framework, its build, tests and env switch row are fork-only until the runtime profile (seedds/nxnative#492) is upstream, because the framework carries profile.tsv and main.m sets DM_PROFILE.
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci Workflows and repository tooling labels Oct 30, 2026
@v0lumehi

v0lumehi commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Device run prepared, not finished.

Built from route-c-m1 at a6a9d14: BotW (01007EF00011E000), --framework --romfs separate, DM_LOADHASH=1, on a clone of the build folder (the original is untouched), team E75GJAP35S. The iOS shader stage ran again (about 22 minutes, 19,592 shaders), the whole build about 38 minutes. Result: BotW-framework.ipa, 1.5 GB, and the IPA contains Payload/DmIOS.app/Frameworks/DmGame.framework/DmGame (53.6 MB) plus its Info.plist.

Not done: the install. Z (iPhone 17 Pro Max) was available, but the BotW app is not installed on it and so there is no game data (Documents/romfs.img or the games folder) to run against. Pushing the 15 GB RomFS image was not part of the task, so the run stops here. Framework loaded yes/no and the DM_LOADHASH comparison are therefore still open.

Expected hashes from the Mac: not possible. DM_LOADHASH hashes the loaded image with every relocation slot replaced by a token that depends on the live loader state (symbol resolution, forced take-over, host symbols), so only a second run can give the reference, the default IPA against the framework IPA as described above.

Next I install the IPA, push the RomFS with scripts/push_romfs.sh, play a few minutes and confirm gameplay here.

@v0lumehi

Copy link
Copy Markdown
Collaborator

Route C continues in #226. @LNPANDY agreed that I take over Route C, so I merged this branch (route-c-m1, patches 0034 to 0038) into v0lumehi/ios-shell-ui-2, and #226 is now the complete shell PR: the views and host layer from before, plus M2 on top of M1.

What #226 adds on top of this PR:

  • build_ipa.sh DM_FRAMEWORK_ONLY and the NSP script's --shell-framework build one game's framework on its own (DmGame<title ID>.framework, with its tables, profile, settings list, shader libraries, pipeline archive and icon inside)
  • dm/ios/tools/build_shell.sh and dm/ios/project-shell.yml make the shell app: the engine host plus every embedded framework, with the frontend-ios package linked as a local Swift package
  • dm/ios/Shell/ holds the real GameLauncher: Play sets the game's environment, dlopens its framework, calls dm_set_game_image_header and starts the host
  • the Mac launcher gets a third install target, "iPhone or iPad (one app for all games)"

The engine changes are patches 0039 and 0040 (fork-only, for the same reason as 0035 to 0038). I'll keep this PR open as a draft until #226 is reviewed, then close it in favour of #226.

@v0lumehi

Copy link
Copy Markdown
Collaborator

Device result for Route C, recorded in #226: on an iPhone 17 Pro Max (iOS 27.0.1) Breath of the Wild loads from its framework inside the shell (module bases from the framework's sections, RomFS image and both DLC from Documents) and plays, and Hades runs next to it in the same shell on one host binary (M3). M1 is therefore verified on a device as part of the shell. Settings chosen in the shell still do not reliably reach the game, which is listed as open in #226.

v0lumehi added a commit that referenced this pull request Oct 30, 2026
…and iPad

The view layer of the Route C shell (#144) in a new frontend-ios package,
building on a first pass by Codex (input types, focus model, size-driven
layouts, state handling).

- Library in portrait: the selected game's art as a full-bleed hero with
  the title over it, a row or grid of covers, recently played, one cream
  primary action. Two panes with inline settings at regular sizes.
- Library wider than tall: Cover Flow over the blurred cover, snapping to
  the centre, neighbours turned back, a short shelf for one to three games.
- Artwork input decoded once by the host (the NACP icon or key art), with a
  deliberate placeholder when a game has none.
- Settings, game data, cloud saves, state views and controllers restyled
  after the Mac launcher, with fewer cards and stronger type.
- Demo games with their own drawn cover art, a foldable stand-in harness,
  layout unit tests, UI tests for controller input, rotation and folding,
  and a capture test for visual review.
v0lumehi added a commit that referenced this pull request Oct 31, 2026
…and iPad

The view layer of the Route C shell (#144) in a new frontend-ios package,
building on a first pass by Codex (input types, focus model, size-driven
layouts, state handling).

- Library in portrait: the selected game's art as a full-bleed hero with
  the title over it, a row or grid of covers, recently played, one cream
  primary action. Two panes with inline settings at regular sizes.
- Library wider than tall: Cover Flow over the blurred cover, snapping to
  the centre, neighbours turned back, a short shelf for one to three games.
- Artwork input decoded once by the host (the NACP icon or key art), with a
  deliberate placeholder when a game has none.
- Settings, game data, cloud saves, state views and controllers restyled
  after the Mac launcher, with fewer cards and stronger type.
- Demo games with their own drawn cover art, a foldable stand-in harness,
  layout unit tests, UI tests for controller input, rotation and folding,
  and a capture test for visual review.
@v0lumehi

Copy link
Copy Markdown
Collaborator

Closing this in favour of #226. It carries these five patches with @LNPANDY as their author, now numbered 0045 to 0049, together with the shell and the device run on an iPhone 17 Pro Max.

@v0lumehi v0lumehi closed this Oct 31, 2026
v0lumehi added a commit that referenced this pull request Oct 31, 2026
…and iPad

The view layer of the Route C shell (#144) in a new frontend-ios package,
building on a first pass by Codex (input types, focus model, size-driven
layouts, state handling).

- Library in portrait: the selected game's art as a full-bleed hero with
  the title over it, a row or grid of covers, recently played, one cream
  primary action. Two panes with inline settings at regular sizes.
- Library wider than tall: Cover Flow over the blurred cover, snapping to
  the centre, neighbours turned back, a short shelf for one to three games.
- Artwork input decoded once by the host (the NACP icon or key art), with a
  deliberate placeholder when a game has none.
- Settings, game data, cloud saves, state views and controllers restyled
  after the Mac launcher, with fewer cards and stronger type.
- Demo games with their own drawn cover art, a foldable stand-in harness,
  layout unit tests, UI tests for controller input, rotation and folding,
  and a capture test for visual review.
v0lumehi added a commit that referenced this pull request Oct 31, 2026
…and iPad

The view layer of the Route C shell (#144) in a new frontend-ios package,
building on a first pass by Codex (input types, focus model, size-driven
layouts, state handling).

- Library in portrait: the selected game's art as a full-bleed hero with
  the title over it, a row or grid of covers, recently played, one cream
  primary action. Two panes with inline settings at regular sizes.
- Library wider than tall: Cover Flow over the blurred cover, snapping to
  the centre, neighbours turned back, a short shelf for one to three games.
- Artwork input decoded once by the host (the NACP icon or key art), with a
  deliberate placeholder when a game has none.
- Settings, game data, cloud saves, state views and controllers restyled
  after the Mac launcher, with fewer cards and stronger type.
- Demo games with their own drawn cover art, a foldable stand-in harness,
  layout unit tests, UI tests for controller input, rotation and folding,
  and a capture test for visual review.
v0lumehi added a commit that referenced this pull request Oct 31, 2026
…and iPad

The view layer of the Route C shell (#144) in a new frontend-ios package,
building on a first pass by Codex (input types, focus model, size-driven
layouts, state handling).

- Library in portrait: the selected game's art as a full-bleed hero with
  the title over it, a row or grid of covers, recently played, one cream
  primary action. Two panes with inline settings at regular sizes.
- Library wider than tall: Cover Flow over the blurred cover, snapping to
  the centre, neighbours turned back, a short shelf for one to three games.
- Artwork input decoded once by the host (the NACP icon or key art), with a
  deliberate placeholder when a game has none.
- Settings, game data, cloud saves, state views and controllers restyled
  after the Mac launcher, with fewer cards and stronger type.
- Demo games with their own drawn cover art, a foldable stand-in harness,
  layout unit tests, UI tests for controller input, rotation and folding,
  and a capture test for visual review.
@v0lumehi
v0lumehi deleted the route-c-m1 branch November 2, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows and repository tooling documentation Improvements or additions to documentation enhancement New feature or request ios iPhone or iPad patch-queue Changes the patch queue or the upstream pin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants