Merge Heaps Support #46
Draft
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.
WIP Practice Mod support for
merge-heaps
.merge-heaps
is a WIP patch for Workshop Mod which combines SMB2's segmented, adjacent heaps into one continuous heap. This consolidates all unused heap space by the game, making available a large amount of additional space for levels, backgrounds, etc. Apparently it may improve performance in some cases as well - further investigation needed there I suppose.merge-heaps
violates the prior assumption that RELs will be allocated at consistent memory addresses. This has a couple implications:Ghidra-SuperMonkeyBallTools
plugin exporter and elf2rel a while back, and so a new symbol map is included in this PR.mainloop.rel
cannot be used. Instead, they are converted from "vanilla" addresses to "relocated" addresses at runtime. This allows vanilla addresses to continue to be used, which are handy for cross-referencing with the vanilla game.TODO
Currently the game crashes when booting and I'm not sure why.