a little bit more refactoring of startup
parent
d31d02c373
commit
c932aae4c3
|
@ -69,6 +69,8 @@ namespace OpenSim
|
|||
|
||||
protected override void ReadExtraConfigSettings()
|
||||
{
|
||||
base.ReadExtraConfigSettings();
|
||||
|
||||
IConfig startupConfig = m_config.Source.Configs["Startup"];
|
||||
|
||||
if (startupConfig != null)
|
||||
|
|
|
@ -146,10 +146,15 @@ namespace OpenSim
|
|||
|
||||
protected virtual void ReadExtraConfigSettings()
|
||||
{
|
||||
|
||||
IConfig networkConfig = m_config.Source.Configs["Network"];
|
||||
if (networkConfig != null)
|
||||
{
|
||||
proxyUrl = networkConfig.GetString("proxy_url", "");
|
||||
proxyOffset = Int32.Parse(networkConfig.GetString("proxy_offset", "0"));
|
||||
}
|
||||
}
|
||||
|
||||
protected void LoadPlugins()
|
||||
protected virtual void LoadPlugins()
|
||||
{
|
||||
PluginLoader<IApplicationPlugin> loader =
|
||||
new PluginLoader<IApplicationPlugin>(new ApplicationPluginInitialiser(this));
|
||||
|
@ -181,9 +186,6 @@ namespace OpenSim
|
|||
InitialiseGridServices(libraryRootFolder);
|
||||
}
|
||||
|
||||
proxyUrl = ConfigSource.Source.Configs["Network"].GetString("proxy_url", "");
|
||||
proxyOffset = Int32.Parse(ConfigSource.Source.Configs["Network"].GetString("proxy_offset", "0"));
|
||||
|
||||
// Create a ModuleLoader instance
|
||||
m_moduleLoader = new ModuleLoader(m_config.Source);
|
||||
|
||||
|
@ -260,7 +262,7 @@ namespace OpenSim
|
|||
/// <summary>
|
||||
/// Initialises the assetcache
|
||||
/// </summary>
|
||||
protected void InitialiseAssetCache()
|
||||
protected virtual void InitialiseAssetCache()
|
||||
{
|
||||
IAssetServer assetServer;
|
||||
if (m_configSettings.AssetStorage == "grid")
|
||||
|
|
Loading…
Reference in New Issue