From 9938c724a22368a3ee8bfa2ffd66ec0d5780ab1b Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 7 Jun 2022 13:57:29 +0200 Subject: [PATCH] Cleanup --- r5dev/vpklib/packedstore.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r5dev/vpklib/packedstore.cpp b/r5dev/vpklib/packedstore.cpp index 0d9b52b9..50049857 100644 --- a/r5dev/vpklib/packedstore.cpp +++ b/r5dev/vpklib/packedstore.cpp @@ -267,7 +267,8 @@ vector CPackedStore::GetIgnoreList(const string& svWorkSpace) const string::size_type nPos = svIgnore.find("//"); if (nPos == string::npos) { - if (!svIgnore.empty() && std::find(vIgnore.begin(), vIgnore.end(), svIgnore) == vIgnore.end()) + if (!svIgnore.empty() && + std::find(vIgnore.begin(), vIgnore.end(), svIgnore) == vIgnore.end()) { vIgnore.push_back(svIgnore); } @@ -545,7 +546,7 @@ void CPackedStore::UnpackAll(const VPKDir_t& vDir, const string& svPathOut) vDir.m_vHeader.m_nMajorVersion != VPK_MAJOR_VERSION || vDir.m_vHeader.m_nMinorVersion != VPK_MINOR_VERSION) { - Error(eDLL_T::FS, "Invalid VPK directory file (header doesn't match criteria)\n"); + Error(eDLL_T::FS, "Unsupported VPK directory file (invalid header criteria)\n"); return; } BuildManifest(vDir.m_vEntryBlocks, svPathOut, GetSourceName(vDir.m_svDirPath));