Page 1 of 1

KDPatch imagesize

Posted: Tue Apr 25, 2006 2:31 pm
by levellord
KDPatch can't patch any version of Keen that is not exactly the size, to the byte, that it wants; I'm trying to get it t patch an executable somewhat smaller, does anyone know what KDRPatch looks for to determine what the 'right' version of Keen is, and how I can get around it?

Posted: Sat May 06, 2006 2:00 am
by MultiMania
Okey, KDRPatch works by scanning the EXE header and checking to see if the image is one of the following sizes:

(Numbers are in decimal because I was lazy when coding KDRPatch)

1.13:
Normal: 206368
LZExe: 81587


If the image is not one of those sizes, KdrPatch will refuse to open it, (and depending on the version used, display the image length in the error message).

Posted: Sat May 06, 2006 2:51 am
by levellord
Right, so now where in the code does it say that, so I can alter what it looks for? I'm trying to make it patch the full version, I'm almost done, but I need to change the imagesize it looks for.