
  Description of the patch script file (pth) generated by the crayzee's patcher
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

since version 1.05, correct crc since 1.07:
-------------------------------------------

Head:
title	39 bytes	"crayzee's patcher's patch script file",1ah,0
verh	1 byte		patcher version number (major)
verl	1 byte		patcher version number (minor)
nverh	1 byte		patcher version needed to use the script (major)
nverl	1 byte		patcher version needed to use the script (minor)
fsize1	4 bytes (dword)	patched file length (in bytes)
crc1	4 bytes (dword)	32bit CRC of the old file
crc2	4 bytes (dword)	32bit CRC of the new file
crc3	4 bytes (dword)	32bit CRC of the patch script file data
entries	4 bytes (dword) size of the data entries

Data entry:
oldbyte	1 byte		old file byte
newbyte	1 byte		new file byte
pos	4 bytes		position in the file



since version 1.21
------------------

Head:
title	39 bytes	"crayzee's patcher's patch script file",1ah,0
verh	1 byte		patcher version number (major)
verl	1 byte		patcher version number (minor)
nverh	1 byte		patcher version needed to use the script (major)
nverl	1 byte		patcher version needed to use the script (minor)
fsize1	4 bytes (dword)	old file length (in bytes)
fsize2	4 bytes (dword)	new file length (in bytes)
crc1	4 bytes (dword)	32bit CRC of the old file
crc2	4 bytes (dword)	32bit CRC of the new file
crc3	4 bytes (dword)	32bit CRC of the patch script file data
entries	4 bytes (dword) size of the data entries
res1	4 bytes (dword)	reserved1 = 0
res2	4 bytes (dword)	reserved2 = 0

Data entry:
pos	4 bytes		position in the file
dif	1 byte		number of different bytes at this position-1
dif * (
oldbyte	1 byte		old file byte
newbyte	1 byte		new file byte
)



minipatcher data section structure description (since version 1.23)
-------------------------------------------------------------------

Head:
ident	16 bytes	"crayzee.minipth",0
verh	1 byte		patcher version number (major)
verl	1 byte		patcher version number (minor)
nverh	1 byte		patcher version needed to use the script (major)
nverl	1 byte		patcher version needed to use the script (minor)
fsize1	4 bytes (dword)	old file length (in bytes)
fsize2	4 bytes (dword)	new file length (in bytes)
crc1	4 bytes (dword)	32bit CRC of the old file
crc2	4 bytes (dword)	32bit CRC of the new file
crc3	4 bytes (dword)	32bit CRC of the patch script file data
entries	4 bytes (dword) size of the data entries
res1	4 bytes (dword)	reserved1 = 0
res2	4 bytes (dword)	reserved2 = 0

Data entry:
pos	4 bytes		position in the file
dif	1 byte		number of different bytes at this position
dif * (
oldbyte	1 byte		old file byte
newbyte	1 byte		new file byte
)
