Ref T348, util function to correct FSX/P3D model path

Related: Ref T317 Ref T247 Ref T335
This commit is contained in:
Klaus Basan
2018-09-13 01:57:53 +02:00
parent 7f78981be7
commit a07d18aa44
4 changed files with 53 additions and 2 deletions

View File

@@ -79,9 +79,12 @@ namespace BlackMisc
//! \sa CNetworkUtils::buildUrl for URLs
static QString appendFilePathsAndFixUnc(const QString &path1, const QString &path2, const QString &path3);
//! Strip file from path a/b/c.json a/b
//! Strip file from path a/b/c.json a/b, return path
static QString stripFileFromPath(const QString &path);
//! Last path segment a/b/c => c
static QString lastPathSegment(const QString &path);
//! Normalize file path to Qt standard, e.g by turning \ to /
static QString normalizeFilePathToQtStandard(const QString &filePath);