From 95adca72cb5c2559cc9354d3dc75d8c565f7527d Mon Sep 17 00:00:00 2001 From: RIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIDGE RACERRRRRRRRRRRRRRRRRRRRRRRRRRRRR Date: Thu, 18 Apr 2019 16:13:02 -0300 Subject: [PATCH] add more language filenames [ubi_bao.c] indeed, this is just unconfirmed for now but hear me out - if you look through the Assassin's Creed exe out of each platform the game was released on (Windows version has just two exe that consists of all code in the game) you'll see that there are a total of 10 spoken languages that are being referenced in the exe. i chose the Windows version of the game 'cuz every single detail in there isn't encrypted somehow within these two exe files(as in, those that end with Dx9 and Dx10, respectively). --- src/meta/ubi_bao.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/meta/ubi_bao.c b/src/meta/ubi_bao.c index a8d90341..a61e6f55 100644 --- a/src/meta/ubi_bao.c +++ b/src/meta/ubi_bao.c @@ -1380,6 +1380,10 @@ static STREAMFILE * open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, in streamBAO = open_streamfile_by_filename(streamFile, buf); if (streamBAO) return streamBAO; + snprintf(buf,buf_size, "Spanish_BAO_0x%08x", file_id); + streamBAO = open_streamfile_by_filename(streamFile, buf); + if (streamBAO) return streamBAO; + snprintf(buf,buf_size, "German_BAO_0x%08x", file_id); streamBAO = open_streamfile_by_filename(streamFile, buf); if (streamBAO) return streamBAO; @@ -1388,7 +1392,11 @@ static STREAMFILE * open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, in streamBAO = open_streamfile_by_filename(streamFile, buf); if (streamBAO) return streamBAO; - snprintf(buf,buf_size, "Spanish_BAO_0x%08x", file_id); + snprintf(buf,buf_size, "Japanese_BAO_0x%08x", file_id); + streamBAO = open_streamfile_by_filename(streamFile, buf); + if (streamBAO) return streamBAO; + + snprintf(buf,buf_size, "Korean_BAO_0x%08x", file_id); streamBAO = open_streamfile_by_filename(streamFile, buf); if (streamBAO) return streamBAO; @@ -1400,7 +1408,11 @@ static STREAMFILE * open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, in streamBAO = open_streamfile_by_filename(streamFile, buf); if (streamBAO) return streamBAO; - /* there may be more per language */ + snprintf(buf,buf_size, "Polish_BAO_0x%08x", file_id); + streamBAO = open_streamfile_by_filename(streamFile, buf); + if (streamBAO) return streamBAO; + + /* these are all of the languages that were referenced in Assassin's Creed exe (out of each platform) */ } else { snprintf(buf,buf_size, "BAO_0x%08x", file_id);