Big update of PGM protection routines. Quite a lot changed/merged. Some formatting changes in d_pgm.cpp
This commit is contained in:
parent
15d5d742b8
commit
dbb4e62da6
File diff suppressed because it is too large
Load Diff
|
@ -77,6 +77,7 @@ void install_protection_asic27a_ketsui();
|
|||
void install_protection_asic27a_ddp3();
|
||||
void install_protection_asic27a_puzzli2();
|
||||
void install_protection_asic27a_kovshp();
|
||||
void install_protection_asic27a_py2k2();
|
||||
|
||||
// pgm_crypt
|
||||
void pgm_decrypt_kov();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* IGS PGM System Encryptions */
|
||||
// IGS PGM System Encryptions
|
||||
|
||||
#include "pgm.h"
|
||||
#include "bitswap.h"
|
||||
|
@ -134,7 +134,7 @@ void pgm_decrypt_kovsh()
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 kovshp_tab[256] = { // IGS0009rd1040219
|
||||
static const UINT8 kovshp_tab[256] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x39, 0x72, 0x64, 0x31, 0x30, 0x34, 0x30, 0x32, 0x31, 0x39,
|
||||
0xf9, 0x8c, 0xbd, 0x87, 0x16, 0x07, 0x39, 0xeb, 0x29, 0x9e, 0x17, 0xef, 0x4f, 0x64, 0x7c, 0xe0,
|
||||
0x5f, 0x73, 0x5b, 0xa1, 0x5e, 0x95, 0x0d, 0xf1, 0x40, 0x36, 0x2f, 0x00, 0xe2, 0x8a, 0xbc, 0x32,
|
||||
|
@ -297,7 +297,7 @@ void pgm_decrypt_puzzli2()
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 oldsplus_tab[256] = { // IGS0013RD1040727
|
||||
static const UINT8 oldsplus_tab[256] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x31, 0x33, 0x52, 0x44, 0x31, 0x30, 0x34, 0x30, 0x37, 0x32, 0x37,
|
||||
0xf5, 0x79, 0x6d, 0xab, 0x04, 0x22, 0x51, 0x96, 0xf2, 0x72, 0xe8, 0x3a, 0x96, 0xd2, 0x9a, 0xcc,
|
||||
0x3f, 0x47, 0x3c, 0x09, 0xf2, 0xd9, 0x72, 0x41, 0xe6, 0x44, 0x43, 0xa7, 0x3e, 0xe2, 0xfd, 0xd8,
|
||||
|
@ -379,7 +379,7 @@ void pgm_decrypt_py2k2() // and ddp3
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 ketsui_tab[256] = { // IGS0004RD1021015
|
||||
static const UINT8 ketsui_tab[256] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x34, 0x52, 0x44, 0x31, 0x30, 0x32, 0x31, 0x30, 0x31, 0x35,
|
||||
0x7c, 0x49, 0x27, 0xa5, 0xff, 0xf6, 0x98, 0x2d, 0x0f, 0x3d, 0x12, 0x23, 0xe2, 0x30, 0x50, 0xcf,
|
||||
0xf1, 0x82, 0xf0, 0xce, 0x48, 0x44, 0x5b, 0xf3, 0x0d, 0xdf, 0xf8, 0x5d, 0x50, 0x53, 0x91, 0xd9,
|
||||
|
@ -407,7 +407,7 @@ void pgm_decrypt_ketsui()
|
|||
|
||||
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
||||
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
||||
if ((i & 0x080030) == 0x000010) x ^= 0x0004; // due to address starting at 0 and not 100000/2!
|
||||
if ((i & 0x080030) == 0x000010) x ^= 0x0004; // address starts at 0 and not 100000/2!
|
||||
if ((i & 0x000042) != 0x000042) x ^= 0x0008;
|
||||
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
||||
if ((i & 0x002004) != 0x000004) x ^= 0x0020;
|
||||
|
@ -420,7 +420,7 @@ void pgm_decrypt_ketsui()
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 espgal_tab[256] = { // IGS0007RD1030909
|
||||
static const UINT8 espgal_tab[256] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x37, 0x52, 0x44, 0x31, 0x30, 0x33, 0x30, 0x39, 0x30, 0x39,
|
||||
0xa7, 0xf1, 0x0a, 0xca, 0x69, 0xb2, 0xce, 0x86, 0xec, 0x3d, 0xa2, 0x5a, 0x03, 0xe9, 0xbf, 0xba,
|
||||
0xf7, 0xd5, 0xec, 0x68, 0x03, 0x90, 0x15, 0xcc, 0x0d, 0x08, 0x2d, 0x76, 0xa5, 0xb5, 0x41, 0xf1,
|
||||
|
@ -508,12 +508,12 @@ void pgm_decrypt_svgpcb()
|
|||
UINT16 x = BURN_ENDIAN_SWAP_INT16(src[i]);
|
||||
|
||||
// preliminary!
|
||||
if ((i & 0x040080) != 0x000080) x ^= 0x0001; // ok?
|
||||
if ((i & 0x040080) != 0x000080) x ^= 0x0001;
|
||||
if ((i & 0x084008) == 0x084008) x ^= 0x0002;
|
||||
if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008; // ok?
|
||||
if ((i & 0x048100) == 0x048000) x ^= 0x0010; //
|
||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020; // ok?
|
||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
||||
if ((i & 0x048100) == 0x048000) x ^= 0x0010;
|
||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||
if ((i & 0x011800) != 0x010000) x ^= 0x0040;
|
||||
if ((i & 0x000820) == 0x000820) x ^= 0x0080;
|
||||
|
||||
|
@ -725,7 +725,7 @@ void pgm_decrypt_kov2p()
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 theglad_tab[256] = { // IGS0005RD1021203
|
||||
static const UINT8 theglad_tab[256] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x35, 0x52, 0x44, 0x31, 0x30, 0x32, 0x31, 0x32, 0x30, 0x33,
|
||||
0xc4, 0xa3, 0x46, 0x78, 0x30, 0xb3, 0x8b, 0xd5, 0x2f, 0xc4, 0x44, 0xbf, 0xdb, 0x76, 0xdb, 0xea,
|
||||
0xb4, 0xeb, 0x95, 0x4d, 0x15, 0x21, 0x99, 0xa1, 0xd7, 0x8c, 0x40, 0x1d, 0x43, 0xf3, 0x9f, 0x71,
|
||||
|
@ -766,7 +766,7 @@ void pgm_decrypt_theglad()
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 killbldp_tab[] = { // IGS0024RD1050908
|
||||
static const UINT8 killbldp_tab[] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x32, 0x34, 0x52, 0x44, 0x31, 0x30, 0x35, 0x30, 0x39, 0x30, 0x38,
|
||||
0x12, 0xa0, 0xd1, 0x9e, 0xb1, 0x8a, 0xfb, 0x1f, 0x50, 0x51, 0x4b, 0x81, 0x28, 0xda, 0x5f, 0x41,
|
||||
0x78, 0x6c, 0x7a, 0xf0, 0xcd, 0x6b, 0x69, 0x14, 0x94, 0x55, 0xb6, 0x42, 0xdf, 0xfe, 0x10, 0x79,
|
||||
|
@ -807,7 +807,7 @@ void pgm_decrypt_killbldp()
|
|||
}
|
||||
}
|
||||
|
||||
static const UINT8 happy6in1_tab[256] = { // IGS0008RD1031215
|
||||
static const UINT8 happy6in1_tab[256] = {
|
||||
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x38, 0x52, 0x44, 0x31, 0x30, 0x33, 0x31, 0x32, 0x31, 0x35,
|
||||
0x14, 0xd6, 0x37, 0x5c, 0x5e, 0xc3, 0xd3, 0x62, 0x96, 0x3d, 0xfb, 0x47, 0xf0, 0xcb, 0xbf, 0xb0,
|
||||
0x60, 0xa1, 0xc2, 0x3d, 0x90, 0xd0, 0x58, 0x56, 0x22, 0xac, 0xdd, 0x39, 0x27, 0x7e, 0x58, 0x44,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue