VGMStream Input: Fix subsong files dumping tracks

Fixed an issue with individual files that reference single subsongs
inadvertently dumping all tracks in the referenced bank to the playlist,
instead of only adding the one bookmark or txtp file. Now it matches the
behavior of foobar2000.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-04-20 01:50:44 -07:00
parent d1c6950ec6
commit 94f915b892
2 changed files with 5 additions and 3 deletions

View File

@ -53,6 +53,11 @@
return @[];
}
if(stream->stream_index > 0) {
close_vgmstream(stream);
return @[];
}
VGMInfoCache *sharedMyCache = [VGMInfoCache sharedCache];
NSMutableArray *tracks = [NSMutableArray array];

View File

@ -336,9 +336,6 @@ VGMSTREAM* init_vgmstream_from_cogfile(const char* path, int subsong) {
STREAMFILE* sf;
VGMSTREAM* vgm = NULL;
if(!subsong)
subsong = 1;
sf = open_cog_streamfile(path);
if(sf) {