Tycho SH3- and Chrono-Patches use "binpatch.exe".
It requires special Visual C++ Redistributable Package installed.
This file is not necessarily needed or can be replaced by another "binpatch.exe".
The already h.sie/stiebler patched sh3.exe can be patched direct with a HEX-Editor by hand.
All what is needed is in the *.map-file. Its easy to read.
Another way is replacing binpatch.exe.
There are lots of Sources around the web. The simplest may be this:
https://ftp.nice.ch/pub/next/unix/ha...inpatch.c.html
This can be easily compiled for example with MS "Visual C++ Toolkit 2003".
As this source is very easy, and not direct compatible with "Tycho's"-binpatch.exe, some changes has to be made:
( the original line is commented out by // )
//if ((input_file = fopen(input_file_name, "r+")) == NULL) {
if ((input_file = fopen(input_file_name, "r+b")) == NULL) {
//count = fscanf(diff_file, "%lu %o %o", &offset, &c1, &c2);
count = fscanf(diff_file, "%lx %x %x", &offset, &c1, &c2);
//offset--;
The *.map-file must be changed to contain only the
Address NumberOriginal NumberPatch
without any Comments. Like this: "TychoSh3Patch_new.map"
Quote:
000A5DC6 f0 ff
000A5DC7 22 11
000A5DC8 22 11
000A5DC9 22 11
|
The binpatch-command itself must also be changed into:
binpatch -f TychoSh3Patch_new.map sh3.exe
Please note: due to its simpleness-behavior the sh3.exe is overwritten. A Copy has to be keep safe.
Greetings.