KDPatch imagesize

Request patches for Keen Dreams.
Post Reply
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

KDPatch imagesize

Post by levellord » Tue Apr 25, 2006 2:31 pm

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?

User avatar
MultiMania
Patch Master
Posts: 153
Joined: Mon Nov 24, 2003 3:09 am
Location: Deep in the heart of keen.
Contact:

Post by MultiMania » Sat May 06, 2006 2:00 am

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).

User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord » Sat May 06, 2006 2:51 am

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.

Post Reply