更新 'src/Main/options.cxx'

This commit is contained in:
zhongjin 2024-09-01 17:43:48 +08:00
parent a04febaa92
commit 04c4588d1b

View File

@ -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);