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:
Christopher Snowhill 2018-06-28 18:30:48 -07:00 committed by GitHub
commit 2e730916e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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;
}

View File

@ -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 */