From 0cf4434fa85d9fdda58bfc7cb45e4dcf720fa19d Mon Sep 17 00:00:00 2001 From: tzobler Date: Sat, 14 Dec 2024 20:44:10 +0100 Subject: [PATCH] ci: add some comments --- src/misc/simulation/fscommon/fsdirectories.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc/simulation/fscommon/fsdirectories.cpp b/src/misc/simulation/fscommon/fsdirectories.cpp index 02c3bf38e..1c9449b09 100644 --- a/src/misc/simulation/fscommon/fsdirectories.cpp +++ b/src/misc/simulation/fscommon/fsdirectories.cpp @@ -105,9 +105,11 @@ namespace swift::misc::simulation::fscommon if (!d.exists()) { continue; } return msfsPackage; } - // then we look for Steam-Edition + // then we look for steam-edition for (QString path : locations) { + // 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"), "");