mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Enable opening files with .zip suffix
The test file dives/TestDiveDivingLog5.08allmetric.zip wouldn't load. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b473604ee8
commit
06dae680e4
1 changed files with 2 additions and 6 deletions
8
file.c
8
file.c
|
@ -225,12 +225,8 @@ static int try_to_open_csv(const char *filename, struct memblock *mem, enum csv_
|
||||||
|
|
||||||
static int open_by_filename(const char *filename, const char *fmt, struct memblock *mem, char **error)
|
static int open_by_filename(const char *filename, const char *fmt, struct memblock *mem, char **error)
|
||||||
{
|
{
|
||||||
/* Suunto Dive Manager files: SDE */
|
/* Suunto Dive Manager files: SDE, ZIP; divelogs.de files: DLD */
|
||||||
if (!strcasecmp(fmt, "SDE"))
|
if (!strcasecmp(fmt, "SDE") || !strcasecmp(fmt, "ZIP") || !strcasecmp(fmt, "DLD"))
|
||||||
return try_to_open_zip(filename, mem, error);
|
|
||||||
|
|
||||||
/* divelogs.de files: DLD */
|
|
||||||
if (!strcasecmp(fmt, "DLD"))
|
|
||||||
return try_to_open_zip(filename, mem, error);
|
return try_to_open_zip(filename, mem, error);
|
||||||
|
|
||||||
#if ONCE_COCHRAN_IS_SUPPORTED
|
#if ONCE_COCHRAN_IS_SUPPORTED
|
||||||
|
|
Loading…
Reference in a new issue