From 555c818501f8f0a6ac6208b4f28a2bbf57173425 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sun, 3 May 2020 06:23:44 +0800 Subject: [PATCH] file_io: don't include zips if SCANO_DIR isn't set. --- file_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_io.cpp b/file_io.cpp index 5fe7f70..5caa779 100644 --- a/file_io.cpp +++ b/file_io.cpp @@ -1436,7 +1436,7 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons { const char *ext = extension; int found = (has_trd && x2trd_ext_supp(de->d_name)); - if (!found && !strcasecmp(de->d_name + strlen(de->d_name) - 4, ".zip")) + if (!found && !strcasecmp(de->d_name + strlen(de->d_name) - 4, ".zip") && (options & SCANO_DIR)) { // Fake that zip-file is a directory. de->d_type = DT_DIR;