mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-21 08:43:40 +01:00
Add HCA keys [Kandagawa Jet Girls (PC), Re:Zero (Mobile)]
This commit is contained in:
parent
3c4b96de36
commit
807b6b6021
@ -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_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) << 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_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)
|
if (key == 0)
|
||||||
continue;
|
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);
|
VGM_ASSERT(pos % 0x100000 == 0, "HCA: pos %x...\n", pos);
|
||||||
|
|
||||||
/* observed files have aligned keys in the .text section, change if needed */
|
/* observed files have aligned keys in the .text section, change if needed */
|
||||||
pos += 0x04; //pos++;
|
pos += 0x04;
|
||||||
|
//pos++;
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
@ -367,6 +367,12 @@ static const hcakey_info hcakey_list[] = {
|
|||||||
/* World Ends's Club (iOS) */
|
/* World Ends's Club (iOS) */
|
||||||
{50979632184989243}, // 00B51DB4932A963B
|
{50979632184989243}, // 00B51DB4932A963B
|
||||||
|
|
||||||
|
/* Kandagawa Jet Girls (PC) */
|
||||||
|
{6235253715273671}, // 001626EE22C887C7
|
||||||
|
|
||||||
|
/* Re:Zero - Lost in Memories (Android) */
|
||||||
|
{1611432018519751642}, // 165CF4E2138F7BDA
|
||||||
|
|
||||||
/* Dragalia Lost (iOS/Android) */
|
/* Dragalia Lost (iOS/Android) */
|
||||||
{2967411924141, subkeys_dgl, sizeof(subkeys_dgl) / sizeof(subkeys_dgl[0]) }, // 000002B2E7889CAD
|
{2967411924141, subkeys_dgl, sizeof(subkeys_dgl) / sizeof(subkeys_dgl[0]) }, // 000002B2E7889CAD
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user