only load compressed content if the path contains the file to extract

This commit is contained in:
Brad Parker 2016-09-22 12:52:20 -04:00
parent bef6308b12
commit f8d51c2f86

View File

@ -124,7 +124,7 @@ static uint32_t content_crc = 0;
static int content_file_read(const char *path, void **buf, ssize_t *length)
{
#ifdef HAVE_COMPRESSION
if (path_is_compressed_file(path))
if (path_contains_compressed_file(path))
{
if (file_archive_compressed_read(path, buf, NULL, length))
return 1;