From 61cc5eebcfeb59042ef60cb9c0709b59bb1dce53 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 1 Mar 2020 12:23:02 +0100 Subject: [PATCH] Add .awb+acb combo --- src/meta/awb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/meta/awb.c b/src/meta/awb.c index 9d21b09f..ede63671 100644 --- a/src/meta/awb.c +++ b/src/meta/awb.c @@ -209,6 +209,21 @@ static void load_awb_name(STREAMFILE *streamFile, STREAMFILE *acbFile, VGMSTREAM } } + /* try (name)_(name)_R001.awb + (name).acb [Sengoku Basara Battle Party (Mobile)] */ + if (!acbFile) { + char *cmp = "_R001"; + get_streamfile_basename(streamFile, filename, sizeof(filename)); + len_name = strlen(filename); + len_cmp = strlen(cmp); + + if (len_name > len_cmp && strcmp(filename + len_name - len_cmp, cmp) == 0) { + filename[(len_name - len_cmp) / 2] = '\0'; + strcat(filename, ".acb"); + VGM_LOG("%s\n", filename); + acbFile = open_streamfile_by_filename(streamFile, filename); + } + } + /* probably loaded */ load_acb_wave_name(acbFile, vgmstream, waveid, is_memory);