mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Implement .ini file includes. Anything that begins with "Include-" will be
treated as another ini source to load. For example: Include-Asset = AssetSetup.ini will load AssetSetup.ini after all other ini files are done. This works recursively, too
This commit is contained in:
@@ -490,9 +490,6 @@ namespace OpenSim
|
||||
}
|
||||
else
|
||||
{
|
||||
// IConfig c = DefaultConfig().Configs[cmdparams[1]];
|
||||
// if (c == null)
|
||||
// c = DefaultConfig().AddConfig(cmdparams[1]);
|
||||
IConfig c;
|
||||
IConfigSource source = new IniConfigSource();
|
||||
c = source.AddConfig(cmdparams[1]);
|
||||
@@ -516,7 +513,7 @@ namespace OpenSim
|
||||
}
|
||||
else
|
||||
{
|
||||
IConfig c = m_config.Source.Configs[cmdparams[1]]; // DefaultConfig().Configs[cmdparams[1]];
|
||||
IConfig c = m_config.Source.Configs[cmdparams[1]];
|
||||
if (c == null)
|
||||
{
|
||||
m_log.Info("Section \"" + cmdparams[1] + "\" does not exist.");
|
||||
|
||||
Reference in New Issue
Block a user