Browse Source

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

pull/2/head
Alibek Omarov 4 years ago
parent
commit
585955eb19
  1. 3
      engine/common/filesystem.c

3
engine/common/filesystem.c

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

Loading…
Cancel
Save