Merge pull request #982 from grj1234/encrypted-mse-koe

Add encrypted .mse and .koe
This commit is contained in:
bnnm 2021-10-16 19:14:29 +02:00 committed by GitHub
commit a4852d9656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -256,6 +256,7 @@ static const char* extension_list[] = {
"kovs", //fake extension/header id for .kvs
"kno",
"kns",
"koe",
"kraw",
"ktac",
"ktsl2asbin",
@ -335,6 +336,7 @@ static const char* extension_list[] = {
"msa",
"msb",
"msd",
"mse",
"msf",
"mss",
"msv",

View File

@ -80,12 +80,13 @@ VGMSTREAM* init_vgmstream_encrypted(STREAMFILE* sf) {
return vgmstream;
}
if (check_extensions(sf,"bgm")) {
if (check_extensions(sf,"bgm,mse,koe")) {
/* Studio Ring games [Nanami to Konomi no Oshiete ABC (PC), Oyatsu no Jikan (PC)]
* .bgm: BGM, .mse: SE, .koe: Voice */
uint8_t keybuf[0x100];
size_t key_size;
off_t start;
/* Studio Ring games [Nanami to Konomi no Oshiete ABC (PC), Oyatsu no Jikan (PC)] */
if (id != get_id32be("RIFF"))
goto fail;