From ea2782b6677b8d7d7ee78ecb40cf37ef63efb275 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 7 May 2023 21:57:40 +0200 Subject: [PATCH] Fix some Ubi HX [XIII (GC)] --- src/meta/ubi_hx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/meta/ubi_hx.c b/src/meta/ubi_hx.c index e201e03d..1600c10a 100644 --- a/src/meta/ubi_hx.c +++ b/src/meta/ubi_hx.c @@ -239,6 +239,14 @@ static int parse_name(ubi_hx_header* hx, STREAMFILE* sf) { } } + /* XIII GC has one subsong 718260C4 B7C67534 with empty index entry + * (CGCWavResData with name does exist but its CGCWaveFileIdObj doesn't point to it) */ + if (!hx->is_external) { + strcpy(hx->internal_name,"?"); + return 1; + } + + VGM_LOG("UBI HX: name not found for CUUID %08x %08x\n", hx->cuuid1, hx->cuuid2); fail: vgm_logi("UBI HX: error parsing name at %x (report)\n", index_offset); return 0;