Author Topic: ROM patching  (Read 7041 times)

0 Members and 1 Guest are viewing this topic.

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
ROM patching
« 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

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: ROM patching
« Reply #1 on: February 28, 2010, 09:49:41 PM »
it's so  cool mate!  ~sm-37.gif~
In my world,have 0 and 1 only ......Matrix World......

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: ROM patching
« Reply #2 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_!
-----------------------------------
8bit & 16bit
the golden age of videogames

Offline ~tak

  • Newbie
  • *
  • Posts: 46
Re: ROM patching
« Reply #3 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 :)

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: ROM patching
« Reply #4 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.

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: ROM patching
« Reply #5 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.

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: ROM patching
« Reply #6 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