fix: removes unnecessary function in msfsDirImpl()

This commit is contained in:
tzobler
2024-12-16 12:41:12 +01:00
committed by Lars Toenning
parent 0cf4434fa8
commit 5a24b61bde

View File

@@ -111,8 +111,7 @@ namespace swift::misc::simulation::fscommon
// there seems to be no constant for the roaming directory, so we have to do some magic // there seems to be no constant for the roaming directory, so we have to do some magic
// https://doc.qt.io/qt-6/qstandardpaths.html // https://doc.qt.io/qt-6/qstandardpaths.html
path.replace("Local", "Roaming"); path.replace("Local", "Roaming");
const QString msfsPackage = const QString msfsPackage = CFileUtils::appendFilePaths(path, "Microsoft Flight Simulator");
CFileUtils::appendFilePaths(CFileUtils::appendFilePaths(path, "Microsoft Flight Simulator"), "");
const QString fileName = CFileUtils::appendFilePaths(msfsPackage, "UserCfg.opt"); const QString fileName = CFileUtils::appendFilePaths(msfsPackage, "UserCfg.opt");
const QFileInfo fi(fileName); const QFileInfo fi(fileName);
if (!fi.exists()) { continue; } if (!fi.exists()) { continue; }