Repository navigation
Use native task ownership with mutable gameplay hooks - #186
Merged
Merged
Conversation
mstan
force-pushed
the
burndown/mmx183-native-delivery-20261125
branch
from
November 25, 2026 19:34
1e02ec1 to
30ad02d
Compare
mstan
marked this pull request as ready for review
November 26, 2026 01:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.