GridConfig and UserConfig settings can now be loaded from nini files.

GenericGridServerConcept
MW 2009-02-28 14:22:36 +00:00
parent ce0e98ad30
commit 9b9456c985
2 changed files with 10 additions and 2 deletions

View File

@ -64,7 +64,11 @@ namespace OpenSim.Framework
public void LoadConfigurationFromNini(IConfigSource configSource) public void LoadConfigurationFromNini(IConfigSource configSource)
{ {
IConfig config = configSource.Configs["GridServerConfig"];
if (config != null)
{
Util.ReadSettingsFromIniFile<GridConfig>(config, this);
}
} }
public void loadConfigurationOptions() public void loadConfigurationOptions()

View File

@ -94,7 +94,11 @@ namespace OpenSim.Framework
public void LoadConfigurationFromNini(IConfigSource configSource) public void LoadConfigurationFromNini(IConfigSource configSource)
{ {
IConfig config = configSource.Configs["UserServerConfig"];
if (config != null)
{
Util.ReadSettingsFromIniFile<UserConfig>(config, this);
}
} }
public void loadConfigurationOptions() public void loadConfigurationOptions()