Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dm/games/0400486024DEC000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,3 +539,8 @@ Its 37 kernels that correct samples, NDSR's network among them, gave about 0.25
- [8BitDo Ultimate 2 Wireless over Bluetooth has no motion on the Mac](../../../docs/reference/services.md#8bitdo-ultimate-2-wireless-over-bluetooth-has-no-motion-on-the-mac): resolved ([issue #2997](https://github.com/seedds/nxnative/issues/2997)). GameController exposes no `GCMotion` for `2DC8:6012`; `motion_pro_mac.h` now decodes firmware 1.03+'s passive 34-byte input report `0x01` in the shared passive HID model table. Hardware retest of the unified route on the reporter's controller remains open.
- [The driver wires memory tens of thousands of times a second with residency sets on the queues](../../../docs/reference/frame-rate.md#the-driver-wires-memory-tens-of-thousands-of-times-a-second-with-residency-sets-on-the-queues): resolved by naming the residency sets on each command buffer; the driver's cause is open. 0 of 20 launches in the state on a 16 GB M4 and 0 of 4 on a 16 GB M2, against 10 of 20 and 5 of 5.
- [Subgroup inputs passed by reference to out-of-line helpers read one lane's value](../../../docs/reference/shaders.md#subgroup-inputs-passed-by-reference-to-out-of-line-helpers-read-one-lanes-value). The scan helpers of the subgroup workaround gave every lane one prefix sum, and the GPU hung or faulted after a save loaded.

## Controller layout overlays (`DM_PAD_LAYOUT`)

- The game draws its in-game button icons from two RomFS archives: `Font2/Scalable/External.Nin_Ounce_NVN2.bfotf.zs` (an XOR-obfuscated OpenType CFF font with the Nintendo Switch PUA glyphs) and `UI/Layout2Archive/Common.Product.*.Nin_Ounce_NVN2.bntx.zs` (`ActionGuidePlus_00`, `KeyTexFontA/B/X/Y_00` 64×64 BC4 letter textures, `OcarinaButtonA/B/X/Y/L/R_00` 93×93 ASTC 4×4 sRGB melody notes, and the pause-menu controller diagrams `Controller_{Pro,Grip,Console}{,1}`, `ControllerSh_{Pro,Grip,Console}1`, and `ControllerGuide_{Pro,Grip,Console}_{00..04}`).
- [`scripts/oot_pad_overlay.py`](../../../scripts/oot_pad_overlay.py) (with [`dm/tools/oot_pad_overlay.m`](../../tools/oot_pad_overlay.m) and the reference renders [`controller_dualsense.png`](controller_dualsense.png) and [`controller_xbox.png`](controller_xbox.png)) builds `overlay_playstation/` and `overlay_xbox/` from the player's RomFS during packing (`scripts/build_ipa_from_nsp.py` and `dm/ios/tools/build_ipa.sh`), patching the CFF glyph outlines and re-encoding those 35 textures so `DM_PAD_LAYOUT=playstation` and `DM_PAD_LAYOUT=xbox` swap the HUD icons, ocarina staff notes, and pause-menu controller diagrams.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dm/games/0400486024DEC000/controller_xbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion dm/ios/tools/build_ipa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ if [ -n "${DM_ENTITLEMENTS-default}" ]; then
t "entitlements in the executable's ad-hoc signature (the install tool re-signs and keeps them)"
fi
P=Payload/DmIOS.app
SKIP=(--skip $P/_CodeSignature --skip $P/embedded.mobileprovision --skip $P/msl --skip $P/aoc --skip $P/romfs --skip $P/romfs.img --skip $P/romfs.id --skip $P/html --skip $P/jit --skip $P/romfs_programs)
SKIP=(--skip $P/_CodeSignature --skip $P/embedded.mobileprovision --skip $P/msl --skip $P/aoc --skip $P/romfs --skip $P/romfs.img --skip $P/romfs.id --skip $P/html --skip $P/jit --skip $P/romfs_programs --skip $P/overlay_playstation --skip $P/overlay_xbox)
if [ -n "${PROGRAMS_TSV:-}" ]; then # each program's shader libraries, RomFS, offline HTML pages and nn::jit image under its own folder
[ "${DM_COPY_ROMFS:-YES}" != NO ] || die "DM_COPY_ROMFS=NO: a game of several programs keeps its programs' files in the app"
MAPS=("$P=$APP")
Expand Down Expand Up @@ -289,6 +289,12 @@ MAPS+=("$P/msl/$MSLDIR=$MSL_IOS/$MSLDIR" "$P=$APP")
if [ -d "$(dirname "$ROMFS")/jit" ]; then MAPS+=("$P/jit=$(dirname "$ROMFS")/jit"); t "nn::jit image: $(dirname "$ROMFS")/jit"; fi
# the RomFS of the application's other programs (scripts/pack_nup.py: a Switch 2 Edition's Switch 1 program), which the game mounts by program index; in the app also with DM_COPY_ROMFS=NO (main.m)
if [ -d "$(dirname "$ROMFS")/romfs_programs" ]; then MAPS+=("$P/romfs_programs=$(dirname "$ROMFS")/romfs_programs"); t "other programs' RomFS: $(ls "$(dirname "$ROMFS")/romfs_programs" | grep '\.img$' | tr '\n' ' ')"; fi
if [ "$GAME" = "0400486024DEC000" ] && [ -e "$ROMFS" ] && [ -f "$ROOT/scripts/oot_pad_overlay.py" ]; then
if [ ! -d "$O/overlays/overlay_playstation" ] || [ ! -d "$O/overlays/overlay_xbox" ]; then
mkdir -p "$O/overlays" && "$FONT_PY" "$ROOT/scripts/oot_pad_overlay.py" "$ROMFS" "$O/overlays" || die "oot_pad_overlay"
fi
MAPS+=("$P/overlay_playstation=$O/overlays/overlay_playstation" "$P/overlay_xbox=$O/overlays/overlay_xbox")
fi
fi
t "pack IPA (already-compressed game files stored, everything else deflated)"
# The device can enable Metal 4/prebuild at run time even when the profile defaults it off. Without an offline archive, its prebuild needs these pulling vertex libraries just as the hybrid pipelines do.
Expand Down
6 changes: 5 additions & 1 deletion dm/mac/pack_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ def aside():
a = argparse.Namespace(**vars(a))
for name in ('out', 'host', 'patched', 'romfs', 'msl', 'tables', 'font', 'aoc', 'pso', 'pso_pairs', 'mesh_pairs', 'env_file', 'settings', 'icon', 'html', 'control_nacp'):
if getattr(a, name, None): setattr(a, name, str(Path(getattr(a, name)).resolve()))
overlays = [Path(p).resolve() for p in (vars(a).get('overlay') or []) if p and Path(p).is_dir()]
vars(a)['overlay'] = [str(p) for p in overlays]
mods, msls, pso, tables, pairs, mpairs, fonts, files = selected_inputs(a)
runtime_python = getattr(a, 'runtime_python', None)
runtime = []
Expand Down Expand Up @@ -472,7 +474,7 @@ def tree(p): # a folder's entries; a RomFS image's one row as a large file's (
return [['.', *as_packed([p, *rows[0][1:]], last.get(p), moved)[1:]]] if Path(p).is_file() and len(rows) == 1 else rows
romfs_rows = tree(a.romfs)
inputs = {'options': vars(a), 'files': [as_packed(file_row(p, True), last.get(str(p)), moved) if p in large else file_row(p) for p in files + sources],
'trees': [(p, romfs_rows if p == a.romfs else inventory(Path(p))) for p in (a.romfs, a.aoc, a.html, str(Path(a.romfs).parent / PROGRAM_ROMFS), *(str(x[1]) for x in programs), *(str(x[3]) for x in programs)) if p and Path(p).exists()],
'trees': [(p, romfs_rows if p == a.romfs else inventory(Path(p))) for p in (a.romfs, a.aoc, a.html, str(Path(a.romfs).parent / PROGRAM_ROMFS), *(str(p) for p in overlays), *(str(x[1]) for x in programs), *(str(x[3]) for x in programs)) if p and Path(p).exists()],
'runtime_python': inventory(runtime_python) if runtime_python else None,
'tools': [[str(c), c.stat().st_mode, c.stat().st_size, c.stat().st_mtime_ns, c.stat().st_ctime_ns, run([c, '--version']).strip()] for c in (clang, swiftc)] + [
str(sdk), run(['xcrun', '--sdk', 'macosx', '--show-sdk-version']).strip(),
Expand Down Expand Up @@ -516,6 +518,7 @@ def tree(p): # a folder's entries; a RomFS image's one row as a large file's (
if pairs: shutil.copyfile(pairs, dm / 'pso_pairs.tsv') # the split's copy, for a profile without the table
if mpairs: shutil.copyfile(mpairs, dm / 'mesh_pairs.tsv')
if fonts: copy(fonts, dm / 'font', False)
for ov in overlays: copy([ov], dm / ov.name, False)
if a.env_file: shutil.copyfile(a.env_file, dm / 'env.txt')
if a.settings: shutil.copyfile(a.settings, dm / 'launcher.json')
if a.control_nacp: shutil.copyfile(a.control_nacp, res / 'control.nacp')
Expand Down Expand Up @@ -608,6 +611,7 @@ def parse(argv):
ap.add_argument('--tables', required=True, help='the game profile folder (shader_map.tsv and the tables beside it)')
ap.add_argument('--runtime-python', help='bundle the NVN shader compiler with this relocatable Python installation')
ap.add_argument('--font', required=True, help='the folder of the shared-font stand-ins (nintendo_ext.ttf)')
ap.add_argument('--overlay', action='append', help='a RomFS overlay folder (overlay_<layout>) copied into Resources/dm/')
ap.add_argument('--aoc', help='the DLC RomFS images or folders by index')
ap.add_argument('--pso', help='the pipeline archive made offline for this Mac (pso_offline.py --platform macos output: <arch>.mtl4a, prebuilt.tsv)')
ap.add_argument('--pso-pairs', help='pso_pairs.tsv for a profile that has none (the shader split\'s copy)')
Expand Down
2 changes: 2 additions & 0 deletions dm/tools/impact_map.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ dm/gfx/nvn/msl_image.h *:* reads each shader from the one-file library: every NV
dm/tools/shader_lib.py *:* the shader libraries as one file: every NVN game build and regress chain
dm/tools/shader_cache.py *:* the compile cache as one file: every NVN game build and regress chain
dm/tools/tree_tar.py *:* one tar in place of Xcode's derived data and quiet work folders: every game build
dm/tools/oot_pad_overlay.m hle:*fs* Ocarina of Time controller diagram and callout texture overlay generator
scripts/oot_pad_overlay.py hle:*fs* Ocarina of Time PlayStation and Xbox controller RomFS overlay generator
dm/tools/nro_collect.py *:* NRO discovery from game resources during packing
dm/tools/nx_extract/* *:* NSP extraction: every game's resource inputs
dm/tools/nx_extract_bin/* *:* fallback: the extractor binary, when its sources are not in the range
Expand Down
Loading