Skip to content

Expose bounded incoming GameCube launch context - #189

Merged
capz merged 1 commit into
mainfrom
feat/incoming-launch-context
Nov 17, 2026
Merged

capz merged 1 commit into
mainfrom
feat/incoming-launch-context

Conversation

@capz

@capz capz commented Nov 17, 2026

Copy link
Copy Markdown
Owner

GameCube apps can now read launcher-provided arguments through Dolphin.IO.LaunchContext without changing managed Main or adding application-owned bootstrap C. This is needed for AnimalTown's installed Dolphin Depot profile to select its content directory.

The native CRT argc/argv is snapshotted before initialization, with cached-MEM1 checks and atomic 64-argument/4096-byte limits. Missing or malformed arguments yield an empty context. Capture is enabled only when LaunchContext is reachable, keeping its roughly 4 KiB buffer out of other applications. Wii/Wii U calls are rejected.

Validation: native bounds/snapshot fixtures at O2 and O3/LTO; compiler-domain suite; real AOT execution for absent and UTF-8 arguments, argument arrays and GC stress; generated bundle capture flag; CI coverage checks. Physical launcher handoff remains unqualified. No UI changed, so screenshots would not illustrate this API change. Existing licenses are unchanged.

@capz
capz merged commit 134a524 into main Nov 17, 2026
21 checks passed
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