mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-08 18:55:36 +08:00
fix: removes unnecessary function in msfsDirImpl()
This commit is contained in:
@@ -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
|
||||
// https://doc.qt.io/qt-6/qstandardpaths.html
|
||||
path.replace("Local", "Roaming");
|
||||
const QString msfsPackage =
|
||||
CFileUtils::appendFilePaths(CFileUtils::appendFilePaths(path, "Microsoft Flight Simulator"), "");
|
||||
const QString msfsPackage = CFileUtils::appendFilePaths(path, "Microsoft Flight Simulator");
|
||||
const QString fileName = CFileUtils::appendFilePaths(msfsPackage, "UserCfg.opt");
|
||||
const QFileInfo fi(fileName);
|
||||
if (!fi.exists()) { continue; }
|
||||
|
||||
Reference in New Issue
Block a user