1
0
Fork 0

Launcher: pass catalog paths via fg-aircraft

This should enable hangar aircraft to be found when searching for MP
models
This commit is contained in:
James Turner 2021-06-14 10:49:04 +01:00
parent fa50fe60cd
commit bdcb30d785

View file

@ -378,6 +378,12 @@ void AddOnsController::collectArgs()
m_config->setArg("fg-aircraft", path);
}
// 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));
}
// add-on module paths
// we could query this directly from AddonsModel, but this is simpler right now
QSettings settings;