summaryrefslogtreecommitdiffstats
path: root/src/cppc4group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppc4group.cpp')
-rw-r--r--src/cppc4group.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cppc4group.cpp b/src/cppc4group.cpp
index 99d5e41..ea24f3b 100644
--- a/src/cppc4group.cpp
+++ b/src/cppc4group.cpp
@@ -264,9 +264,9 @@ bool CppC4Group::extractAll(const std::string& path)
return cc4group.extractAll(p->g, path.c_str());
}
-bool CppC4Group::extractSingle(const std::string& entryPath, const std::string& targetPath)
+bool CppC4Group::extractSingle(const std::string& entryPath, const std::string& targetPath, const bool rename)
{
- return cc4group.extractSingle(p->g, entryPath.c_str(), targetPath.c_str());
+ return (rename ? cc4group.extractSingleRename : cc4group.extractSingle)(p->g, entryPath.c_str(), targetPath.c_str());
}
std::optional<CppC4Group::Data> CppC4Group::getEntryData(const std::string& path)