From 585955eb19cc890872a481d4d51e3ba98d6d4e24 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 2 May 2021 01:20:18 +0300 Subject: [PATCH] engine: filesystem: add an error message if we're trying to get a handle of a compressed file in ZIP archive --- engine/common/filesystem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index 2d406fdc..8dceb20f 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -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 ); }