Skip to content

Commit

Permalink
fix(vpkpp): don't copy external archives if saving to the same location
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Jul 18, 2024
1 parent e48ed35 commit 833fc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vpkpp/format/VPK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ bool VPK::bake(const std::string& outputDir_, const Callback& callback) {
};

// Copy external binary blobs to the new dir
if (!outputDir.empty()) {
if (!outputDir_.empty()) {
for (int archiveIndex = 0; archiveIndex < this->numArchives; archiveIndex++) {
std::string from = getArchiveFilename(this->getTruncatedFilepath(), archiveIndex);
if (!std::filesystem::exists(from)) {
Expand Down

0 comments on commit 833fc86

Please sign in to comment.