From 02bf85780a2c9b3c5a69457712e47a6615749679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 17 Apr 2017 19:34:44 +0200 Subject: [PATCH] Improved OZF files handling. --- src/offlinemap.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/offlinemap.cpp b/src/offlinemap.cpp index c27ac243..6226a942 100644 --- a/src/offlinemap.cpp +++ b/src/offlinemap.cpp @@ -332,7 +332,11 @@ bool OfflineMap::getImageInfo(const QString &path) return false; } - if (_imgPath.endsWith("ozf2")) { + if (_imgPath.endsWith("ozf3", Qt::CaseInsensitive) + || _imgPath.endsWith("ozf4", Qt::CaseInsensitive)) { + qWarning("%s: %s: obfuscated image files are not supported", + qPrintable(_name), qPrintable(_imgPath)); + } else if (_imgPath.endsWith("ozf2", Qt::CaseInsensitive)) { _ozf.load(_imgPath); _size = _ozf.size(); } else {