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:
parent
fa50fe60cd
commit
bdcb30d785
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue