mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-25 15:20:21 +01:00
Merge pull request #241 from shawwn/2018-06-21/allow-empty-fileext
If a file has no extension, try to play it anyway
This commit is contained in:
commit
2e730916e6
@ -341,6 +341,11 @@ bool input_vgmstream::g_is_our_path(const char * p_path,const char * p_extension
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (strlen(p_extension) <= 0) {
|
||||
// Last Of Us speech files have no file extension
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ VGMSTREAM * init_vgmstream_xvag(STREAMFILE *streamFile) {
|
||||
size_t chunk_size, stream_size;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
if (!check_extensions(streamFile,"xvag"))
|
||||
if (!check_extensions(streamFile,"xvag,"))
|
||||
goto fail;
|
||||
|
||||
/* check header */
|
||||
|
Loading…
Reference in New Issue
Block a user