aboutsummaryrefslogtreecommitdiff
path: root/gui/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/theme.cpp')
-rw-r--r--gui/theme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp
index 1387eb94ea..6e05ab9701 100644
--- a/gui/theme.cpp
+++ b/gui/theme.cpp
@@ -156,7 +156,7 @@ bool Theme::themeConfigUseable(const Common::FSNode &node, Common::String &theme
Common::File stream;
bool foundHeader = false;
- if (node.getName().hasSuffix(".zip")) {
+ if (node.getName().hasSuffix(".zip") && !node.isDirectory()) {
#ifdef USE_ZLIB
Common::ZipArchive zipArchive(node);
if (zipArchive.hasFile("THEMERC")) {