From 248be5458f34deddfbe04cbe42fa3d5682fdadc1 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 17 Apr 2023 04:39:21 +0300 Subject: [PATCH] engine: common: hpak: do not print hashpak contents in quiet mode --- engine/common/hpak.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/common/hpak.c b/engine/common/hpak.c index bd61774b..0886470f 100644 --- a/engine/common/hpak.c +++ b/engine/common/hpak.c @@ -456,8 +456,11 @@ static qboolean HPAK_Validate( const char *filename, qboolean quiet, qboolean de pRes = &dataDir[i].resource; - Con_Printf( "%i: %s %s %s: ", i, HPAK_TypeFromIndex( pRes->type ), - Q_pretifymem( pRes->nDownloadSize, 2 ), pRes->szFileName ); + if( !quiet ) + { + Con_Printf( "%i: %s %s %s: ", i, HPAK_TypeFromIndex( pRes->type ), + Q_pretifymem( pRes->nDownloadSize, 2 ), pRes->szFileName ); + } if( memcmp( md5, pRes->rgucMD5_hash, 0x10 )) {