From b42f020ad53c539660fc5eb208892d1bff7fa11b Mon Sep 17 00:00:00 2001 From: Mr0maks Date: Wed, 29 May 2019 20:04:14 +0500 Subject: [PATCH] filesystem: zip: warning else zip file is empty --- engine/common/filesystem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index 75217629..d94e82e2 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -686,7 +686,7 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error ) if( signature == ZIP_HEADER_EOCD ) { - Con_Reportf( "%s has no files. Ignored.\n", zipfile ); + Con_Reportf( S_WARN "%s has no files. Ignored.\n", zipfile ); if( error ) *error = ZIP_LOAD_NO_FILES; @@ -1096,8 +1096,8 @@ qboolean FS_AddZip_Fullpath( const char *zipfile, qboolean *already_loaded, int } else { - if( errorcode != ZIP_LOAD_NO_FILES ) - Con_Reportf( S_ERROR "FS_AddZip_Fullpath: unable to load zip \"%s\"\n", zipfile ); + if( errorcode != ZIP_LOAD_NO_FILES ) + Con_Reportf( S_ERROR "FS_AddZip_Fullpath: unable to load zip \"%s\"\n", zipfile ); return false; } }