From 27edaaf65395b21ef03f222bfba6c7f53f023e3c Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 11 Jun 2024 14:13:08 +0200 Subject: [PATCH] VpkLib: improve error and warning messages Slightly more specific. --- src/vpklib/packedstore.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vpklib/packedstore.cpp b/src/vpklib/packedstore.cpp index 0b86d005..e4dbc923 100644 --- a/src/vpklib/packedstore.cpp +++ b/src/vpklib/packedstore.cpp @@ -157,9 +157,9 @@ static bool ShouldPrune(const CUtlString& filePath, CUtlVector& igno return true; } - FOR_EACH_VEC(ignoreList, j) + FOR_EACH_VEC(ignoreList, i) { - const CUtlString& ignoreEntry = ignoreList[j]; + const CUtlString& ignoreEntry = ignoreList[i]; if (ignoreEntry.IsEqual_CaseInsensitive(pFilePath)) { @@ -175,7 +175,7 @@ static bool ShouldPrune(const CUtlString& filePath, CUtlVector& igno if (!nSize) { - Warning(eDLL_T::FS, "File '%s' listed in build manifest appears empty or truncated\n", pFilePath); + Warning(eDLL_T::FS, "File '%s' listed in build manifest appears empty\n", pFilePath); FileSystem()->Close(fileHandle); return true; @@ -464,7 +464,7 @@ void CPackedStoreBuilder::PackStore(const VPKPair_t& vpkPair, const char* worksp if (!pEntryBuffer) { - Error(eDLL_T::FS, NO_ERROR, "%s - Unable to allocate memory for entry buffer!\n", __FUNCTION__); + Error(eDLL_T::FS, NO_ERROR, "%s - Unable to allocate block buffer!\n", __FUNCTION__); return; } @@ -589,7 +589,7 @@ void CPackedStoreBuilder::UnpackStore(const VPKDir_t& vpkDir, const char* worksp if (!pDestBuffer || !pSourceBuffer) { - Error(eDLL_T::FS, NO_ERROR, "%s - Unable to allocate memory for entry buffer!\n", __FUNCTION__); + Error(eDLL_T::FS, NO_ERROR, "%s - Unable to allocate block buffer!\n", __FUNCTION__); return; }