|
|
|
@ -271,6 +271,18 @@ void fgSetDefaults ()
|
|
|
|
|
char* envp = ::getenv( "http_proxy" );
|
|
|
|
|
if( envp != nullptr )
|
|
|
|
|
fgSetupProxy( envp );
|
|
|
|
|
|
|
|
|
|
//zhongjin
|
|
|
|
|
//Addon
|
|
|
|
|
SGPath addonPath = globals->get_fg_root();
|
|
|
|
|
addonPath.append("Addon/RedGriffinATC");
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|