From 5f20e3344d89c5689ed4703adf9b0087cb09ef73 Mon Sep 17 00:00:00 2001 From: modusc896d352 <88909796+modusc896d352@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:34:59 -0300 Subject: [PATCH] ubi_bao changes (3/3) try to explain what this new change means. --- src/meta/ubi_bao.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/meta/ubi_bao.c b/src/meta/ubi_bao.c index 1cf333b3..21c2e1ef 100644 --- a/src/meta/ubi_bao.c +++ b/src/meta/ubi_bao.c @@ -1360,11 +1360,16 @@ static STREAMFILE* open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, int } } - /* If all else fails, try %08x.bao/%08x.sbao nomenclature. */ + /* If all else fails, try %08x.bao/%08x.sbao nomenclature. + * (id).bao is for mimicking engine loading files by internal ID, + * original names (like Common_BAO_0x5NNNNNNN, French_BAO_0x5NNNNNNN and the like) are OK too. */ + + /* %08x.bao nomenclature present in Assassin's Creed (Windows Vista) exe. */ snprintf(buf,buf_size, "%08x.bao", file_id); sf_bao = open_streamfile_by_filename(sf, buf); if (sf_bao) return sf_bao; + /* %08x.sbao nomenclature (in addition to %08x.bao) present in Shaun White Snowboarding (Windows Vista) exe. */ snprintf(buf,buf_size, "%08x.sbao", file_id); sf_bao = open_streamfile_by_filename(sf, buf); if (sf_bao) return sf_bao;