aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/General/Configuration/ConfigurationMember.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/General/Configuration/ConfigurationMember.cs')
-rw-r--r--OpenSim/Framework/General/Configuration/ConfigurationMember.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Framework/General/Configuration/ConfigurationMember.cs b/OpenSim/Framework/General/Configuration/ConfigurationMember.cs
index 4a6e0cc..b8dfc0c 100644
--- a/OpenSim/Framework/General/Configuration/ConfigurationMember.cs
+++ b/OpenSim/Framework/General/Configuration/ConfigurationMember.cs
@@ -25,13 +25,16 @@ namespace OpenSim.Framework.Configuration
25 private ConfigurationOptionResult resultFunction; 25 private ConfigurationOptionResult resultFunction;
26 26
27 private IGenericConfig configurationPlugin = null; 27 private IGenericConfig configurationPlugin = null;
28 /// <summary>
29 /// This is the default configuration DLL loaded
30 /// </summary>
31 private string configurationPluginFilename = "OpenSim.Framework.Configuration.XML.dll";
28 public ConfigurationMember(string configuration_filename, string configuration_description, ConfigurationOptionsLoad load_function, ConfigurationOptionResult result_function) 32 public ConfigurationMember(string configuration_filename, string configuration_description, ConfigurationOptionsLoad load_function, ConfigurationOptionResult result_function)
29 { 33 {
30 this.configurationFilename = configuration_filename; 34 this.configurationFilename = configuration_filename;
31 this.configurationDescription = configuration_description; 35 this.configurationDescription = configuration_description;
32 this.loadFunction = load_function; 36 this.loadFunction = load_function;
33 this.resultFunction = result_function; 37 this.resultFunction = result_function;
34 this.configurationPlugin = this.LoadConfigDll("OpenSim.Framework.Configuration.XML.dll");
35 } 38 }
36 39
37 public void setConfigurationFilename(string filename) 40 public void setConfigurationFilename(string filename)
@@ -50,7 +53,7 @@ namespace OpenSim.Framework.Configuration
50 53
51 public void forceConfigurationPluginLibrary(string dll_filename) 54 public void forceConfigurationPluginLibrary(string dll_filename)
52 { 55 {
53 configurationPlugin = this.LoadConfigDll(dll_filename); 56 configurationPluginFilename = dll_filename;
54 } 57 }
55 public void addConfigurationOption(string configuration_key, ConfigurationOption.ConfigurationTypes configuration_type, string configuration_question, string configuration_default, bool use_default_no_prompt) 58 public void addConfigurationOption(string configuration_key, ConfigurationOption.ConfigurationTypes configuration_type, string configuration_question, string configuration_default, bool use_default_no_prompt)
56 { 59 {
@@ -76,6 +79,7 @@ namespace OpenSim.Framework.Configuration
76 79
77 public void performConfigurationRetrieve() 80 public void performConfigurationRetrieve()
78 { 81 {
82 configurationPlugin = this.LoadConfigDll(configurationPluginFilename);
79 configurationOptions.Clear(); 83 configurationOptions.Clear();
80 if(loadFunction == null) 84 if(loadFunction == null)
81 { 85 {