1
0
Fork 0

Launcher: fix aircraft hanagr paths

Avoid a warning by explicitly appending Aircraft suffix.
This commit is contained in:
James Turner 2021-07-31 17:21:04 +01:00
parent ef96808a18
commit 0a6c4aaf7a

View file

@ -380,8 +380,8 @@ void AddOnsController::collectArgs()
// add hangars as aircraft paths, so they are available for MP model searching
for (const auto& catRef : globals->packageRoot()->catalogs()) {
const auto catPath = catRef->installRoot().utf8Str();
m_config->setArg("fg-aircraft", QString::fromStdString(catPath));
const auto catAircraftPath = catRef->installRoot() / "Aircraft";
m_config->setArg("fg-aircraft", QString::fromStdString(catAircraftPath.utf8Str()));
}
// add-on module paths