We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b42d36 commit 92f1241Copy full SHA for 92f1241
1 file changed
src/renderer/actions/install-path.utils.tsx
@@ -60,7 +60,8 @@ export const defaultCommunityDir = (msfsBase: string): string => {
60
try {
61
const msfsConfig = fs.readFileSync(msfsConfigPath).toString();
62
const msfsConfigLines = msfsConfig.split(/\r?\n/);
63
- const packagesPathLine = msfsConfigLines.find((line) => line.includes('InstalledPackagesPath'));
+ // Intentional space after InstalledPackagesPath to ensure not matching the InstalledPackagesPathNextBoot property added in MSFS2024 SU2.
64
+ const packagesPathLine = msfsConfigLines.find((line) => line.includes('InstalledPackagesPath '));
65
const communityDir = path.join(packagesPathLine.split(' ').slice(1).join(' ').replaceAll('"', ''), '\\Community');
66
67
return fs.existsSync(communityDir) ? communityDir : 'C:\\';
0 commit comments