Add modular configuration for Robust connectors

We can provide modular ini for connectors...

    look for our configuration in the following places...
      1) in the default ini/-inifile
      2) in the named file (ConfigName) located in the configured directory
            (see Robust[.HG].ini [Start] section for ConfigDirectory)
      3) in the repository named in the connector (ConfigURL)
           In this case, the file will be written into the configured
           directory with the specified

  See example connector/service @ https://github.com/BlueWall/SlipStream
  for testing.
This commit is contained in:
BlueWall
2012-10-03 16:07:11 -04:00
parent 503ce70f74
commit 3e71c71cbf
5 changed files with 116 additions and 0 deletions

View File

@@ -64,6 +64,12 @@ namespace OpenSim.Server.Base
get { return m_Config; }
}
public string ConfigDirectory
{
get;
private set;
}
// Run flag
//
private bool m_Running = true;
@@ -153,6 +159,8 @@ namespace OpenSim.Server.Base
startupConfig = m_Config.Configs["Startup"];
}
ConfigDirectory = startupConfig.GetString("ConfigDirectory", ".");
prompt = startupConfig.GetString("Prompt", prompt);
// Allow derived classes to load config before the console is