From a0a59c2f9563c3e00e069694394148af636d0ad7 Mon Sep 17 00:00:00 2001 From: Betsruner <55611319+betsruner@users.noreply.github.com> Date: Thu, 23 Apr 2026 19:08:43 -0500 Subject: [PATCH] fixed vpk info appearing as file-data --- src/Checksum.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Checksum.cpp b/src/Checksum.cpp index 6d85bec7..178e11a7 100644 --- a/src/Checksum.cpp +++ b/src/Checksum.cpp @@ -440,14 +440,16 @@ static void initFileSums() { path.find("portal2_dlc1") == std::string::npos && path.find("portal2_dlc2") == std::string::npos; + bool isVpkDir = Utils::EndsWith(path, "_dir.vpk"); + if (Utils::EndsWith(path, ".nut") - || (Utils::EndsWith(path, ".vpk") && dlc) + || (Utils::EndsWith(path, ".vpk") && dlc && !isVpkDir) || path.find("scripts/talker") != std::string::npos) { paths.push_back(path); } - if (Utils::EndsWith(path, "_dir.vpk")) { + if (isVpkDir) { vpkDirPaths.push_back(path); } }