mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-16 03:23:19 +01:00
Add HCA extension check to avoid some malloc/frees
This commit is contained in:
parent
b8a25dbc27
commit
79a5942cb9
@ -5,6 +5,10 @@
|
||||
VGMSTREAM * init_vgmstream_hca_offset(STREAMFILE *streamFile, uint64_t start, uint64_t size);
|
||||
|
||||
VGMSTREAM * init_vgmstream_hca(STREAMFILE *streamFile) {
|
||||
|
||||
/* check extension, case insensitive */
|
||||
if ( !check_extensions(streamFile, "hca")) return NULL;
|
||||
|
||||
return init_vgmstream_hca_offset( streamFile, 0, streamFile->get_size(streamFile) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user