mrehkopf / sd2snes

SD card based multi-purpose cartridge for the SNES
http://sd2snes.de
GNU General Public License v2.0
590 stars 114 forks source link

Combo fixes #197

Closed redacted173 closed 1 year ago

redacted173 commented 1 year ago

This fixes the combo (0xCB) ROM support which had a minor merge problem with SGB. Not sure if anyone uses it, but since it's there might as well make it work. It also enables the DMA1 unit for combo ROMs.

mrehkopf commented 1 year ago

Out of curiosity, is there anything using this out in the wild? I haven't come across anything and would like to check it out.

redacted173 commented 1 year ago

I don't believe so. There's just a test ROM that starts in lttp and then boots into a smw level when the lantern chest is opened. Then when you lose a life in smw it boots back into lttp using a save state it made earlier. I can attach an IPS of it, but it will be of dubious contents since multiple ROMs are concatenated together and patches usually only work against one game.

I attached the windows source code. A z3_orig.sfc and smw_orig.sfc file will need to be added to the directory and then you can run build.bat in windows. It should produce a 3MB combo.sfc file. You'll have to disable save states in the sd2snes menu for it to work properly since it uses $F00000 to store the save. In retrospect, cart RAM would have been a better location for it.

z3_chest.zip