Remove .bfwavnsmbu fake extension (use TXTP)

This commit is contained in:
bnnm 2022-01-14 17:16:39 +01:00
parent b0888b184f
commit dd84f89d7f
2 changed files with 1 additions and 7 deletions

View File

@ -98,7 +98,6 @@ static const char* extension_list[] = {
"bdsp",
"bfstm",
"bfwav",
"bfwavnsmbu", //fake extension for New Super Smash Bros U (renamed to fix bug)
"bg00",
"bgm",
"bgw",

View File

@ -17,8 +17,7 @@ VGMSTREAM* init_vgmstream_bfwav(STREAMFILE* sf) {
/* .bfwav: used?
* .fwav: header id */
/* .bfwavnsmbu: fake extension to detect New Super Mario Bros U files with weird sample rate */
if (!check_extensions(sf, "bfwav,fwav,bfwavnsmbu"))
if (!check_extensions(sf, "bfwav,fwav"))
goto fail;
return init_vgmstream_bxwav(sf, FWAV);
@ -119,10 +118,6 @@ static VGMSTREAM* init_vgmstream_bxwav(STREAMFILE* sf, bxwav_type_t type) {
if (!is_id32be(data_offset + 0x00, sf, "DATA"))
goto fail;
//TODO remove
if (check_extensions(sf, "bfwavnsmbu"))
sample_rate = 16000;
/* build the VGMSTREAM */
vgmstream = allocate_vgmstream(channels, loop_flag);