mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-20 20:41:08 +01:00
ubi_bao changes
this is an attempt to add standard "atomic bao" nomenclature for "streamed BAOs". like %08x.bao/%08x.bao instead of (example) Common_BAO_0x5NNNNNNN, French_BAO_0x5NNNNNNN or Common_BAO_0x0NNNNNNN. this also applies to "memory BAOs" as well. this change was necessary due to the existence of scimitar_new.bms, which handles forge files rather differently as far as sound files are concerned. more specifically, it goes deeper into the BAO files themselves.
This commit is contained in:
parent
915531b1a4
commit
9a4087eff7
@ -1359,6 +1359,15 @@ static STREAMFILE* open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, int
|
||||
if (sf_bao) return sf_bao;
|
||||
}
|
||||
}
|
||||
|
||||
/* If all else fails, try %08x.bao/%08x.sbao nomenclature. */
|
||||
snprintf(buf,buf_size, "%08x.bao", file_id);
|
||||
sf_bao = open_streamfile_by_filename(sf, buf);
|
||||
if (sf_bao) return sf_bao;
|
||||
|
||||
snprintf(buf,buf_size, "%08x.sbao", file_id);
|
||||
sf_bao = open_streamfile_by_filename(sf, buf);
|
||||
if (sf_bao) return sf_bao;
|
||||
}
|
||||
else {
|
||||
snprintf(buf,buf_size, "BAO_0x%08x", file_id);
|
||||
@ -1367,6 +1376,11 @@ static STREAMFILE* open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, int
|
||||
|
||||
strcat(buf,".bao");
|
||||
sf_bao = open_streamfile_by_filename(sf, buf);
|
||||
if (sf_bao) return sf_bao;
|
||||
|
||||
/* Ditto. */
|
||||
snprintf(buf,buf_size, "%08x.bao", file_id);
|
||||
sf_bao = open_streamfile_by_filename(sf, buf);
|
||||
if (sf_bao) return sf_bao;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user