mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Added proper OZF files detection
This commit is contained in:
parent
eace308774
commit
68a72c5809
@ -347,11 +347,12 @@ bool OfflineMap::getImageInfo(const QString &path)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_imgPath.endsWith("ozf3") || _imgPath.endsWith("ozf4")) {
|
QString suffix = ii.suffix().toLower();
|
||||||
|
if (suffix == "ozf3" || suffix == "ozf4") {
|
||||||
_errorString = QString("%1: Obfuscated image files not supported")
|
_errorString = QString("%1: Obfuscated image files not supported")
|
||||||
.arg(QFileInfo(_imgPath).fileName());
|
.arg(QFileInfo(_imgPath).fileName());
|
||||||
return false;
|
return false;
|
||||||
} else if (_imgPath.endsWith("ozf2")) {
|
} else if (suffix == "ozf2") {
|
||||||
_ozf.load(_imgPath);
|
_ozf.load(_imgPath);
|
||||||
_size = _ozf.size();
|
_size = _ozf.size();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user