From bca1714529e9e33964eba60c2d2b47faf4fd54c3 Mon Sep 17 00:00:00 2001 From: HappyASR Date: Sun, 7 Jul 2024 22:28:34 +0800 Subject: igs/pgmcrypt.cpp: fix decryption for fearless [XingXing] (#12551) --- src/mame/igs/pgmcrypt.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mame/igs/pgmcrypt.cpp b/src/mame/igs/pgmcrypt.cpp index e56fcdc54b0..a8dad4bf08d 100644 --- a/src/mame/igs/pgmcrypt.cpp +++ b/src/mame/igs/pgmcrypt.cpp @@ -1395,7 +1395,6 @@ void lhzb4_decrypt(running_machine &machine) ////////////////////////////////////////////////////////////////////// -// should fearless and superkds be using the same decrypt? fearless will fail ROM check with superkds function at the moment static const uint8_t superkds_tab[256] = { 0x49, 0x47, 0x53, 0x30, 0x32, 0x30, 0x32, 0x52, 0x44, 0x32, 0x30, 0x35, 0x30, 0x31, 0x30, 0x33, @@ -1453,13 +1452,12 @@ void fearless_decrypt(running_machine &machine) { uint16_t x = src[i]; - // might not be 100% correct... IGS27_CRYPT1 - // IGS27_CRYPT2 - IGS27_CRYPT3_ALT2 + IGS27_CRYPT2_ALT + IGS27_CRYPT3 IGS27_CRYPT4 // IGS27_CRYPT5 - IGS27_CRYPT6_ALT + IGS27_CRYPT6 IGS27_CRYPT7 IGS27_CRYPT8 -- cgit v1.2.3