mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 00:04:04 +01:00
cleanup: remove unused fsb .wii
This commit is contained in:
parent
305466196c
commit
1c7a330ba7
@ -641,7 +641,6 @@ static const char* extension_list[] = {
|
||||
"wbk",
|
||||
"wd",
|
||||
"wem",
|
||||
"wii",
|
||||
"wiive", //txth/semi [Rubik World (Wii)]
|
||||
"wic", //txth/reserved [Road Rash (SAT)-videos]
|
||||
"wip", //txth/reserved [Colin McRae DiRT (PC)]
|
||||
|
@ -565,62 +565,3 @@ fail:
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ****************************************** */
|
||||
|
||||
static STREAMFILE* setup_fsb4_wav_streamfile(STREAMFILE *streamfile, off_t subfile_offset, size_t subfile_size);
|
||||
|
||||
/* FSB4 with "\0WAV" Header, found in Deadly Creatures (Wii).
|
||||
* Has a 0x10 BE header that holds the filesize (unsure if this is from a proper rip). */
|
||||
VGMSTREAM* init_vgmstream_fsb4_wav(STREAMFILE* sf) {
|
||||
VGMSTREAM* vgmstream = NULL;
|
||||
STREAMFILE *test_sf = NULL;
|
||||
off_t subfile_start = 0x10;
|
||||
size_t subfile_size = get_streamfile_size(sf) - 0x10 - 0x10;
|
||||
|
||||
/* check extensions */
|
||||
if ( !check_extensions(sf, "fsb,wii") )
|
||||
goto fail;
|
||||
|
||||
if (read_32bitBE(0x00,sf) != 0x00574156) /* "\0WAV" */
|
||||
goto fail;
|
||||
|
||||
/* parse FSB subfile */
|
||||
test_sf = setup_fsb4_wav_streamfile(sf, subfile_start,subfile_size);
|
||||
if (!test_sf) goto fail;
|
||||
|
||||
vgmstream = init_vgmstream_fsb(test_sf);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
/* init the VGMSTREAM */
|
||||
close_streamfile(test_sf);
|
||||
return vgmstream;
|
||||
|
||||
fail:
|
||||
close_streamfile(test_sf);
|
||||
close_vgmstream(vgmstream);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static STREAMFILE* setup_fsb4_wav_streamfile(STREAMFILE* sf, off_t subfile_offset, size_t subfile_size) {
|
||||
STREAMFILE *temp_sf = NULL, *new_sf = NULL;
|
||||
|
||||
/* setup subfile */
|
||||
new_sf = open_wrap_streamfile(sf);
|
||||
if (!new_sf) goto fail;
|
||||
temp_sf = new_sf;
|
||||
|
||||
new_sf = open_clamp_streamfile(temp_sf, subfile_offset,subfile_size);
|
||||
if (!new_sf) goto fail;
|
||||
temp_sf = new_sf;
|
||||
|
||||
new_sf = open_fakename_streamfile(temp_sf, NULL,"fsb");
|
||||
if (!new_sf) goto fail;
|
||||
temp_sf = new_sf;
|
||||
|
||||
return temp_sf;
|
||||
|
||||
fail:
|
||||
close_streamfile(temp_sf);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -79,7 +79,6 @@ init_vgmstream_t init_vgmstream_functions[] = {
|
||||
init_vgmstream_aus,
|
||||
init_vgmstream_rws,
|
||||
init_vgmstream_fsb,
|
||||
init_vgmstream_fsb4_wav,
|
||||
init_vgmstream_fsb5,
|
||||
init_vgmstream_rwax,
|
||||
init_vgmstream_xwb,
|
||||
|
Loading…
x
Reference in New Issue
Block a user