mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 08:20:54 +01:00
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).
This commit is contained in:
parent
944e26d40b
commit
95adca72cb
@ -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);
|
streamBAO = open_streamfile_by_filename(streamFile, buf);
|
||||||
if (streamBAO) return streamBAO;
|
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);
|
snprintf(buf,buf_size, "German_BAO_0x%08x", file_id);
|
||||||
streamBAO = open_streamfile_by_filename(streamFile, buf);
|
streamBAO = open_streamfile_by_filename(streamFile, buf);
|
||||||
if (streamBAO) return streamBAO;
|
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);
|
streamBAO = open_streamfile_by_filename(streamFile, buf);
|
||||||
if (streamBAO) return streamBAO;
|
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);
|
streamBAO = open_streamfile_by_filename(streamFile, buf);
|
||||||
if (streamBAO) return streamBAO;
|
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);
|
streamBAO = open_streamfile_by_filename(streamFile, buf);
|
||||||
if (streamBAO) return streamBAO;
|
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 {
|
else {
|
||||||
snprintf(buf,buf_size, "BAO_0x%08x", file_id);
|
snprintf(buf,buf_size, "BAO_0x%08x", file_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user