更新 'src/Main/options.cxx'
This commit is contained in:
parent
5438da42c0
commit
50d2add451
@ -2926,6 +2926,19 @@ OptionResult Options::processOptions()
|
||||
string msg = "Error registering an add-on: " + e.getFormattedMessage();
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, msg);
|
||||
}
|
||||
|
||||
SGPath addonPath = globals->get_fg_root();
|
||||
addonPath.append("Addon/addon-littlenavmap");
|
||||
|
||||
try {
|
||||
addonManager->registerAddon(addonPath);
|
||||
} catch (const sg_exception &e) {
|
||||
string msg = "Error registering an add-on: " + e.getFormattedMessage();
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user