Skip to content

Commit

Permalink
Merge pull request vgmstream#1501 from bnnm/adm-etc
Browse files Browse the repository at this point in the history
- Fix some ADM3 [Cyberpunk 2077 (PC)]
- Add HCA key
- Add .p08 extension [SoulCalibur (DC)]
  • Loading branch information
bnnm authored Feb 29, 2024
2 parents aa22b1c + 68feb2a commit c003ad5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ static const char* extension_list[] = {
"ovb", //txth/semi [namCollection: Tekken (PS2), Tekken 5: Tekken 1-3 (PS2)]

"p04", //txth/reserved [Psychic Force 2012 (DC), Skies of Arcadia (DC)]
"p08", //txth/reserved [SoulCalibur (DC)]
"p16", //txth/reserved [Astal (SAT)]
"p1d", //txth/reserved [Farming Simulator 18 (3DS)]
"p2a", //txth/reserved [Thunderhawk Operation Phoenix (PS2)]
Expand Down
6 changes: 4 additions & 2 deletions src/meta/adm.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ static int parse_adm(adm_header_t* adm, STREAMFILE* sf) {

/* idle engine */
offset = read_u32le(0x10c, sf);
if (!parse_type(adm, sf, offset)) goto fail; /* SMP2 */
if (read_u32le(0x110, sf) != 1) goto fail;
if (offset != 0) { /* may not exist */
if (!parse_type(adm, sf, offset)) goto fail; /* SMP2 */
if (read_u32le(0x110, sf) != 1) goto fail;
}
break;

default:
Expand Down
4 changes: 4 additions & 0 deletions src/meta/hca_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,10 @@ static const hcakey_info hcakey_list[] = {

// Pachislot Valvrave (iOS)
{2753732797542815}, // 009C8816134319F

// Jujutsu Kaisen: Cursed Clash (multi)
{984703514306706654}, // DAA5EA10B547CDE

};

#endif/*_HCA_KEYS_H_*/

0 comments on commit c003ad5

Please sign in to comment.