Skip to content

Commit 52c5352

Browse files
betsrunerThisAMJ
authored andcommitted
fixed vpk info appearing as file-data
1 parent 05c5eeb commit 52c5352

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Checksum.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,16 @@ static void initFileSums() {
440440
path.find("portal2_dlc1") == std::string::npos &&
441441
path.find("portal2_dlc2") == std::string::npos;
442442

443+
bool isVpkDir = Utils::EndsWith(path, "_dir.vpk");
444+
443445
if (Utils::EndsWith(path, ".nut")
444-
|| (Utils::EndsWith(path, ".vpk") && dlc)
446+
|| (Utils::EndsWith(path, ".vpk") && dlc && !isVpkDir)
445447
|| path.find("scripts/talker") != std::string::npos)
446448
{
447449
paths.push_back(path);
448450
}
449451

450-
if (Utils::EndsWith(path, "_dir.vpk")) {
452+
if (isVpkDir) {
451453
vpkDirPaths.push_back(path);
452454
}
453455
}

0 commit comments

Comments
 (0)