Skip to content

Use native task ownership with mutable gameplay hooks - #186

Merged
mstan merged 5 commits into
mainfrom
burndown/mmx183-native-delivery-20261125
Nov 26, 2026
Merged

mstan merged 5 commits into
mainfrom
burndown/mmx183-native-delivery-20261125

Conversation

@mstan

@mstan mstan commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Use the native task scheduler while retaining mutable mod hooks and guest continuation contracts. Fresh tasks receive the retail dispatcher state; suspended tasks retain their own CPU/bridge return ownership. Interpreted task tails reaching TaskDie now clear the original task slot and finish through the native scheduler's completed-fiber path, without resuming the terminated guest caller or entering the old slot walker. Common USA/JP yield and checkpoint callbacks are registered for both variants; USA-specific gameplay hooks remain guarded.

The fully armored X1 Zero renderer correction is already on main from #185. This prepares its current native delivery path and pins the accompanying SDK changes in RetroPortingToolKit/snesrecomp#316. Scalar color math and gameplay font fades use the current SDK five-bit brightness contract, matching native color composition; results text retains its existing fade independence. The normal regeneration recipe includes the guarded native hook producer and checks renderer captures against actual emitted modes.

Validation: the scalar, native and row-plan ROM-free renderer suites pass, including independent 15/9/4/0 brightness controls and color-domain comparisons. Production-source controls cover both regions' four scheduler callbacks, TaskDie slot effects, completion ownership and the next task's clean context. On the compatible #314/#316 SDK integration, fresh USA Rev1 full-armor X1 Zero movement, charge/release and current-build save/load pass; four captures and the complete movement/charge trace match the previously inspected case. Fresh JP Rev1 native Highway startup, movement and deterministic current-state replay pass. The prepared optional Lua review frontend passes genuine paused startup, resume/pause and frame stepping. Desktop host CI passes.

Individual owner visual acceptance and delivery remain pending. No broader JP feature parity, full Boss Rush progression or audio-listening acceptance is claimed. Refs #183.

The actual Storm Eagle helmet acquisition has also been exercised on this existing HLE candidate. The original capsule dialogue and reward handler change ownership from zero to the helmet bit; the returning X1 Zero then uses native animation group $18 and renders distinct walking, jumping and charge poses. This extends the existing pre-equipped check to the pickup transition and reuses the existing before-fail/after-pass compositor regression. Test-owned roof and portal positioning bypasses the approach; no reward, collected flag or capsule phase was written. The original game image remains unchanged. Individual owner review and delivery are still pending. Refs #187.

@mstan
mstan force-pushed the burndown/mmx183-native-delivery-20261125 branch from 1e02ec1 to 30ad02d Compare November 25, 2026 19:34
@mstan
mstan marked this pull request as ready for review November 26, 2026 01:52
@mstan
mstan merged commit 6afd2fb into main Nov 26, 2026
1 check 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