Neo TeAm Forum

The 9th. NEO Project for SNES => The 9th. NEO Project for SNES Dev kit. => SNES development section => Topic started by: mic_ on February 28, 2010, 09:12:22 PM

Title: ROM patching
Post by: mic_ on February 28, 2010, 09:12:22 PM
I think the Ultra Menu should be able to handle patching of ROMs rather than relying on external tools, so I started implementing a C++ class today for doing region patching of SNES ROMs (to play NTSC games with software region protection on a PAL console, or vice versa).

So far it only handles NTSC->PAL patching, and it may not handle all possible cases (I've only tested 4 games with it). But adding PAL->NTSC patching is just a matter of adding the opcode patterns it should search for, and what to replace them with. Everything else is already in place.

The code can be downloaded here: http://jiggawatt.org/badc0de/snespatcher-1.zip
Title: Re: ROM patching
Post by: Dr.neo on February 28, 2010, 09:49:41 PM
it's so  cool mate!  ~sm-37.gif~
Title: Re: ROM patching
Post by: stefan_iro on March 01, 2010, 12:01:34 AM
This one really sounds interesting!  ;)

Do you plan to add PAL->NTSC patching? I guess that´s what most users will need.

But anyway, great work mic_!
Title: Re: ROM patching
Post by: ~tak on March 01, 2010, 01:20:49 AM
great job _mic!

I did something similar for my ownpurpose months ago in c# however great for sharing your code as well.

is it also based on follwing reference too? (havent got yet the time to dl your code).

http://www.emulatronia.com/doctec/consolas/snes/sneskart.html#romprotection

remember, there are more than just region protection :)
Title: Re: ROM patching
Post by: mic_ on March 01, 2010, 01:54:52 AM
No, I hadn't seen that site before, I just diff:ed patched and unpatched ROMs to see what had changed. But since they have listed all sequences it'll be easy to add them to my code.
Title: Re: ROM patching
Post by: Conle on March 01, 2010, 03:47:56 AM
I have also done research on this field and finished the rom type + save detection
 8)

This week i will have more time to spend on it.
Title: Re: ROM patching
Post by: mic_ on March 01, 2010, 05:28:53 PM
Surely SlowROM detection shouldn't be relevant for the Myth? SRAM size detection maybe.

Anyway, I've updated my code with some more patterns: http://jiggawatt.org/badc0de/snespatcher-2.zip