commit b65d5f2d83bcf04041261e90719d5517e7d4d5e0
parent 431641e1de478f648cb0de532705f9bf564afc3f
Author: Frederic Cambus <fred@statdns.com>
Date: Wed, 4 Jul 2018 08:59:14 +0200
Use the new DIZ files handling mechanism
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -274,7 +274,10 @@ int main(int argc, char *argv[]) {
// get file extension
char *fext = strrchr(input, '.');
fext = fext ? strtolower(strdup(fext)) : "";
- inputFile.fext = fext;
+
+ // check if current file has a .diz extension
+ if (!strcmp(fext, ".diz"))
+ outputFile.diz = true;
// load input file
if ((fd = open(input, O_RDONLY)) == -1) {