Skip to content

Port playbook, Let's Go Pikachu and Z-A on Mac, Mac controls and fullscreen - #36

Closed
futurist-raghav wants to merge 1 commit into
seedds:mainfrom
futurist-raghav:pokemon-fast-port-playbook
Closed

futurist-raghav wants to merge 1 commit into
seedds:mainfrom
futurist-raghav:pokemon-fast-port-playbook

Conversation

@futurist-raghav

Copy link
Copy Markdown

Adds the port playbook (port-playbook/), a Pokémon Let's Go, Pikachu! profile, Z-A host fixes, and Mac front-end controls (arrow keys, fullscreen, mouse as touch). Both games are listed in the README as tested on a Mac (.app) only.

Notes for review:

  • Rebased onto the current main. In dm/host/front_mac.m I kept this branch's key_mask key map over the key_bit one, so Space is now A and the shake key is gone.
  • For the Z-A profile, c1_full.tsv and dmsh_chain.h are taken from main. The shader chain was not regenerated after the changes to dmsh_chain.py and hle_nvn.c, so the chain procedure in AGENTS.md still needs a run.
  • Not rebuilt or run after the rebase.
  • rar/ (the RAR/UnRAR binaries and their licence files) is included, so check that redistributing it is acceptable. keys/ is left out and gitignored.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FNwEjzmT8FUHmeU8KcsjGp

… of rea , nxnative, and tested it by build native versions of Let's Go Pickachu, and Pokemon Legends Z-A

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FNwEjzmT8FUHmeU8KcsjGp
Copilot AI balanced review requested due to automatic review settings October 21, 2026 11:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

seedds added a commit that referenced this pull request Oct 21, 2026
…e game's stack, clock snapshot arithmetic answered by the host (from PR #36)

- movie::Buffer::Data() is Base() + Offset() and Capacity() the whole buffer (STEINS;GATE RE:BOOT's subsdk0), so a PCM or picture output whose read offset the client had advanced was written past its end, over the guest heap. GetOutputBuffer resets the range first. Native-texture mode is left as it is: there Data() is the texture object the client points it at. An end-of-stream packet as long as the whole input buffer carries no data, as one with time -1 already did.
- Creating the output AudioUnit takes about 24 KB of stack (measured on the Mac), more than some game threads have left, and OpenAudioOut runs on the game's thread: it now runs on a host thread, once per AudioOut. Not HLE_FORCE_BIG, which would hide the call site the open hooks log.
- CalculateSpanBetween and CalculateStandardUserSystemClockDifferenceByUser go through the time service session, which the host never opens: AbortImpl in the SDKs of STEINS;GATE RE:BOOT and Tears of the Kingdom, which imports both. The host computes what the service does: the span from the steady time points (the network times when the sources differ, else an error), and the user clock difference from the user clock offsets (0 when their sources differ or both have automatic correction on). CalculateSpanBetween is not in the PR.
- Snapshots carry the user clock context of GetSystemClockContext, which stays the same until the host clock is set; worked out per snapshot, it moved by a second at random, which the user difference would report as a clock change.
- t_time: 14 checks on host snapshots and edited copies; it fails without the two hooks.

Mac: Monster Hunter Rise headless for 75 s with real (muted) audio: OpenAudioOut from the game's thread, AAC and H.264 movies through GetOutputBuffer, 60 fps, no movie red lines. No profile with a matching shader cache on this drive calls the two time functions.

Co-authored-by: Raghav Agarwal <[email protected]>
@seedds

seedds commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Thanks. Part of this is now on main as e61b142, and you're credited as co-author: GetOutputBuffer writes from the start of the buffer, an end-of-stream packet as long as the whole input buffer carries no data, the AudioUnit is created on a host thread, and the host answers the user-clock difference (and CalculateSpanBetween). The rest isn't taken: the Let's Go profile (rtdump binaries, alt shader keys, chain not run), the port playbook, the rar/ binaries, the Mac key map that replaces main's, and the BLE and HID changes. You're welcome to send any of these as a focused PR.

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.

3 participants