summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-06-30 09:10:40 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-30 06:01:07 -0700
commit140d2e41659d394890c5b2c7ed17b79d14d5768a (patch)
tree45ca6c30c4305985e9e3a57bbfd3616941d10753 /file.c
parent9602bd616ac257eb5ca79986aa52e72055bc0a7c (diff)
downloadsubsurface-140d2e41659d394890c5b2c7ed17b79d14d5768a.tar.gz
Try to open ZIP files
Let's just give a try to opening ZIP files. Especially since we have one of them in the test dives directory. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index bb7121bbd..6063c72b6 100644
--- a/file.c
+++ b/file.c
@@ -233,6 +233,10 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo
if (!strcasecmp(fmt, "DLD"))
return try_to_open_zip(filename, mem, error);
+ /* Give a shot for plain ZIP */
+ if (!strcasecmp(fmt, "ZIP"))
+ return try_to_open_zip(filename, mem, error);
+
#if ONCE_COCHRAN_IS_SUPPORTED
/* Truly nasty intentionally obfuscated Cochran Anal software */
if (!strcasecmp(fmt, "CAN"))