Repository navigation
Conversation
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.
A code mod that branches from main into its own module crashes as soon as a frame rate variant is picked. Examples are ACNH QoL Enhancements (151
b/blfrom main into subsdk6) and the cross-module mods the xmod support was written for. Game owned works.Cause.
rewrite()passes--xmod <layout>for each module inxmod_files, and keys the pack withxmod_keys.rewrite_variants()does neither, so<variant>/<m>.xmod.tsvis never written.DM_PATCH_VARIANTis set,loader.cxmod_applyreads the table from the variant folder. It finds nothing, so the far branches keep their console distance and jump into unmapped memory.Change.
rewrite_variants()takesxmodand is passedxmod_filesby the call next torewrite().xmod, it adds--xmodand keys the variant asxmod_keys([key], ...)[0] + ' variant=<v>'. Packs built before this change are rebuilt once.<variant>/<m>.xmod.tsvbefore rewriting.Tested.
--xmodpasses. Itsmain.xmod.tsvis identical to the base table (151 rows), and its changed/cuts files are identical to what the phone built.60/, the log shows "main: variant 60" and "xmod: main 151 branches into subsdk6". The game runs at the 60 fps cap (59.5 fps on the title screen) with no crash. Without the table, it crashes at start.