GridConfig and UserConfig settings can now be loaded from nini files.
parent
ce0e98ad30
commit
9b9456c985
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue