KI Patch:

THIS EXECUTABLE WILL MODIFY YOUR HD IMAGES, MAKE A BACKUP FIRST

This executable will take a KI/KI2 HD Image, Patch a few sectors (Containing volatile data)
at the start of the disk so that the md5 sum matches that expected by MAME and optionally compress it
to a .chd using MAME's HDCOMP (0.63-Style) version (For the more limited 0.62 HDCOMP remove the -create parameter or use kipatch62.exe).
If a geometry header is present it will be skipped over.

Usage: kipatch HDIMAGE
Where HDIMAGE is a KI or KI2 HD dump ("ki.img" or "ki2.img" probably)

To verify if you have a correct image for MAME check offset 0x2c (Or use the hdcomp -info option of hdcomp from 0.63):
KI:  The value should be 0x1de9c7969555a4d09d119a345693615e
KI2: The value should be 0x3e4fc61a9fb0ceeb7aff4193940919cc

Note: For KI it will probably work for any dump, for KI2 it is based on the factory restored LogiqX drive only (I'm lazy :)

--
Reversing - Not for the faint of heart
To get usable image for U64Emu use the "hdcomp -extract" option and prepend the following hex strings
KI: "4147 2034 3139 2031 3320 3437 0A" or KI2: "4147 2038 3133 2031 3620 3633 0A"
Also, for KI2 trim the file length to 419,586,061 (With above header) bytes (LBA had been used)

If you follow LogiqX's instructions to factory restore that come with the U64emu dat or use
the old patches at my site (http://www.mameworld.net/tourniquet/) then you will (hopefully) reach the original crc32's
--

- Tourniquet / 10th Dec 2002
