engine: filesystem: add an error message if we're trying to get a handle of a compressed file in ZIP archive

This commit is contained in:
Alibek Omarov 2021-05-02 01:20:18 +03:00
parent 1a5b2576f7
commit 585955eb19
1 changed files with 3 additions and 0 deletions

View File

@ -2348,7 +2348,10 @@ file_t *FS_OpenZipFile( zip_t *zip, int pack_ind )
// compressed files handled in Zip_LoadFile
if( pfile->flags != ZIP_COMPRESSION_NO_COMPRESSION )
{
Con_Printf( S_ERROR "%s: can't open compressed file %s", __FUNCTION__, pfile->name );
return NULL;
}
return FS_OpenHandle( zip->filename, zip->handle, pfile->offset, pfile->size );
}