Skip to content

Intel Mac: build the shader translator for x86_64 and document the pipeline - #189

Closed
Gdange wants to merge 1 commit into
seedds:mainfrom
Gdange:intel-mac-build
Closed

Gdange wants to merge 1 commit into
seedds:mainfrom
Gdange:intel-mac-build

Conversation

@Gdange

@Gdange Gdange commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Adds docs/agents/06-intel-mac.md and tools/intel-mac/build_dmsh_xlate.sh.

What it fixes. The committed dmsh_xlate launcher is arm64 only, so an Intel Mac stops with Bad CPU type in executable. The script builds the osx-x64 apphost, joins it to the committed arm64 launcher with lipo and checks --source-sha against dmsh_chain.lock (the lock covers the DLL and the source sha, not the launcher).

What it documents. The steps that boot the game's own arm64 code cannot run on Intel: scripts/build_ipa_from_nsp.py now accepts OODLE_NATIVE / OODLE_NATIVE_DLL so a native decoder can replace dmhost (same DM_OODLE_SERVE protocol as dm/host/hle_oodle.c), plus the PE-loader pitfalls met when loading Windows' oo2core_win64.dll, the disk layout for a 5-6 GB title, and the zsign / devicectl path.

Verified. Super Mario Odyssey (0100000000010000, 5.6 GB XCI, 27,210 shaders) packed on an Intel Mac; the rebuilt launcher reports xlate_source 16bbef6c762573ee, the lock's value.

…st of the pipeline

docs/agents/06-intel-mac.md collects what an Intel Mac can and cannot do when packing an IPA:
the translator's launcher is arch-specific (tools/intel-mac/build_dmsh_xlate.sh builds the
osx-x64 apphost, joins it to the committed arm64 launcher with lipo and checks --source-sha
against dmsh_chain.lock), the steps that boot the game's own arm64 code have to be skipped or
served by a native decoder (scripts/build_ipa_from_nsp.py now takes OODLE_NATIVE /
OODLE_NATIVE_DLL for that, same DM_OODLE_SERVE protocol as dm/host/hle_oodle.c), the disk
layout for a 5-6 GB title, and the zsign / devicectl path for signing and installing.

Verified on an Intel Mac with Super Mario Odyssey (0100000000010000, 5.6 GB XCI, 27,210
shaders): the rebuilt launcher reports xlate_source 16bbef6c762573ee, the lock's value.
@Gdange Gdange closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant