From 50d2add451ebf083d076acb38c808e10a7944c93 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 25 Nov 2022 08:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Main/options.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Main/options.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 0d8fe72..8df8c61 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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