更新 'src/Main/options.cxx'
This commit is contained in:
parent
a04febaa92
commit
04c4588d1b
@ -2921,15 +2921,21 @@ OptionResult Options::processOptions()
|
||||
|
||||
//zhongjin Addon
|
||||
const auto& addonManager = addons::AddonManager::instance();
|
||||
|
||||
SGPath app1=globals->get_fg_root();
|
||||
app1.append("Addon/fgcom-mumble")
|
||||
try {
|
||||
addonManager->registerAddon(globals->get_fg_root().append("Addon/fgcom-mumble"));
|
||||
addonManager->registerAddon(app1);
|
||||
} catch (const sg_exception &e) {
|
||||
string msg = "Error registering an add-on: " + e.getFormattedMessage();
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, msg);
|
||||
}
|
||||
|
||||
SGPath app2=globals->get_fg_root();
|
||||
app2.append("Addon/addon-littlenavmap")
|
||||
|
||||
try {
|
||||
addonManager->registerAddon(globals->get_fg_root().append("Addon/addon-littlenavmap"));
|
||||
addonManager->registerAddon(app2);
|
||||
} catch (const sg_exception &e) {
|
||||
string msg = "Error registering an add-on: " + e.getFormattedMessage();
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, msg);
|
||||
|
Loading…
Reference in New Issue
Block a user