Skip to content

Conversation

@PhoenixBound
Copy link
Contributor

As of creating the PR, I haven't tested this yet.

One of the TODOs in the code for deallocating areas of the ROM was found to be useful to implement for the Mother 2 prototype version of CoilSnake, since it was easy to add ranges of free space that accidentally overlapped. This PR deals with that and also makes it possible to merge adjacent blocks of free space in the same bank, ensuring both greater correctness (when new tables/free ranges are added to CoilSnake) and greater potential for space efficiency (by making it possible for an insertion into the ROM to span multiple adjacent deallocated ranges).

I had some concerns about including code specific to EarthBound/HiROM SNES games in a common folder, but CoilSnake has been EB-specific for a while, and the logic should work for any future expansion chip accelerated hacks people may decide to make, too (there are some boards for the SA-1 and Super-FX/GSU chips that appear to work similar to HiROM in how they lay out memory, if I'm reading Ares's SNES game board database correctly).

Copy link
Contributor

@charasyn charasyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me, thanks!

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.

2 participants