mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
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:
parent
1a5b2576f7
commit
585955eb19
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user