summaryrefslogtreecommitdiffhomepage
path: root/ArchiveEx
diff options
context:
space:
mode:
Diffstat (limited to 'ArchiveEx')
-rw-r--r--ArchiveEx/dat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArchiveEx/dat.cpp b/ArchiveEx/dat.cpp
index 1dd7ea3..100f222 100644
--- a/ArchiveEx/dat.cpp
+++ b/ArchiveEx/dat.cpp
@@ -87,6 +87,8 @@ try {
break;
case Action::EXTRACT:
archive.ForEachEntry([opts, &archive](const char* name){
+ if (opts.files.empty())
+ return ExtractFile(archive, name);
for (const auto& pattern : opts.files) {
const int match = fnmatch(pattern.c_str(), name, FNM_PATHNAME | FNM_LEADING_DIR);
if (match == 0) {