Add HCA keys [Kandagawa Jet Girls (PC), Re:Zero (Mobile)]

This commit is contained in:
bnnm 2020-09-18 23:46:00 +02:00
parent 3c4b96de36
commit 807b6b6021
2 changed files with 10 additions and 1 deletions

View File

@ -211,6 +211,8 @@ static void bruteforce_hca_key(STREAMFILE* sf, hca_codec_data* hca_data, unsigne
//key = ((uint64_t)get_u32le(buf + pos + 0x00) << 32) | ((uint64_t)get_u32le(buf + pos + 0x04) << 0);
//key = ((uint64_t)get_u32be(buf + pos + 0x00) << 0 ) | ((uint64_t)get_u32be(buf + pos + 0x04) << 32);
//key = ((uint64_t)get_u32be(buf + pos + 0x00) << 32) | ((uint64_t)get_u32be(buf + pos + 0x04) << 0);
//key = ((uint64_t)get_u32le(buf + pos + 0x00) << 0 ) | 0; /* upper bytes not set, ex. P5 */
//key = ((uint64_t)get_u32be(buf + pos + 0x00) << 0 ) | 0; /* upper bytes not set, ex. P5 */
if (key == 0)
continue;
@ -221,7 +223,8 @@ static void bruteforce_hca_key(STREAMFILE* sf, hca_codec_data* hca_data, unsigne
VGM_ASSERT(pos % 0x100000 == 0, "HCA: pos %x...\n", pos);
/* observed files have aligned keys in the .text section, change if needed */
pos += 0x04; //pos++;
pos += 0x04;
//pos++;
}
done:

View File

@ -367,6 +367,12 @@ static const hcakey_info hcakey_list[] = {
/* World Ends's Club (iOS) */
{50979632184989243}, // 00B51DB4932A963B
/* Kandagawa Jet Girls (PC) */
{6235253715273671}, // 001626EE22C887C7
/* Re:Zero - Lost in Memories (Android) */
{1611432018519751642}, // 165CF4E2138F7BDA
/* Dragalia Lost (iOS/Android) */
{2967411924141, subkeys_dgl, sizeof(subkeys_dgl) / sizeof(subkeys_dgl[0]) }, // 000002B2E7889CAD