summaryrefslogtreecommitdiff
path: root/ZAPD/Main.cpp
diff options
context:
space:
mode:
authorRozelette <Rozelette@users.noreply.github.com>2024-04-12 22:45:25 -0500
committerGitHub <noreply@github.com>2024-04-12 23:45:25 -0400
commit6cd066f5afd61f2171f57d95b69f1e0f3204588c (patch)
tree6e749acdcced33c8d42cc45df7195f1cb9ab237c /ZAPD/Main.cpp
parent8c88631bf691f0abbab48127cabc55d2a704e022 (diff)
Track the files uses to populate each segment (#13)
We can not use the overall list of files because that can have duplicates in the case of certain include patterns and isn't necessarily 1-1 with the segments.
Diffstat (limited to 'ZAPD/Main.cpp')
-rw-r--r--ZAPD/Main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp
index 811f499..1bc7599 100644
--- a/ZAPD/Main.cpp
+++ b/ZAPD/Main.cpp
@@ -271,6 +271,7 @@ int ExtractFunc(int workerID, int fileListSize, std::string fileListItem, ZFileM
Globals::Instance->externalFiles.clear();
Globals::Instance->segments.clear();
+ Globals::Instance->segmentFiles.clear();
Globals::Instance->cfg.segmentRefFiles.clear();
}
else
@@ -286,6 +287,7 @@ int ExtractFunc(int workerID, int fileListSize, std::string fileListItem, ZFileM
Globals::Instance->workerData[workerID]->externalFiles.clear();
Globals::Instance->workerData[workerID]->segments.clear();
+ Globals::Instance->workerData[workerID]->segmentFiles.clear();
Globals::Instance->workerData[workerID]->segmentRefFiles.clear();
numWorkersLeft--;