diff options
Diffstat (limited to 'OpenSim/Framework/ConfigurationMember.cs')
-rw-r--r-- | OpenSim/Framework/ConfigurationMember.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Framework/ConfigurationMember.cs b/OpenSim/Framework/ConfigurationMember.cs index a5ab613..2def070 100644 --- a/OpenSim/Framework/ConfigurationMember.cs +++ b/OpenSim/Framework/ConfigurationMember.cs | |||
@@ -51,29 +51,31 @@ namespace OpenSim.Framework | |||
51 | private ConfigurationOptionResult resultFunction; | 51 | private ConfigurationOptionResult resultFunction; |
52 | 52 | ||
53 | private IGenericConfig configurationPlugin = null; | 53 | private IGenericConfig configurationPlugin = null; |
54 | 54 | private bool useConsoleToPromptOnError = true; | |
55 | /// <summary> | 55 | /// <summary> |
56 | /// This is the default configuration DLL loaded | 56 | /// This is the default configuration DLL loaded |
57 | /// </summary> | 57 | /// </summary> |
58 | private string configurationPluginFilename = "OpenSim.Framework.Configuration.XML.dll"; | 58 | private string configurationPluginFilename = "OpenSim.Framework.Configuration.XML.dll"; |
59 | 59 | ||
60 | public ConfigurationMember(string configuration_filename, string configuration_description, | 60 | public ConfigurationMember(string configuration_filename, string configuration_description, |
61 | ConfigurationOptionsLoad load_function, ConfigurationOptionResult result_function) | 61 | ConfigurationOptionsLoad load_function, ConfigurationOptionResult result_function, bool use_console_to_prompt_on_error) |
62 | { | 62 | { |
63 | configurationFilename = configuration_filename; | 63 | configurationFilename = configuration_filename; |
64 | configurationDescription = configuration_description; | 64 | configurationDescription = configuration_description; |
65 | loadFunction = load_function; | 65 | loadFunction = load_function; |
66 | resultFunction = result_function; | 66 | resultFunction = result_function; |
67 | useConsoleToPromptOnError = use_console_to_prompt_on_error; | ||
67 | } | 68 | } |
68 | 69 | ||
69 | public ConfigurationMember(XmlNode configuration_xml, string configuration_description, | 70 | public ConfigurationMember(XmlNode configuration_xml, string configuration_description, |
70 | ConfigurationOptionsLoad load_function, ConfigurationOptionResult result_function) | 71 | ConfigurationOptionsLoad load_function, ConfigurationOptionResult result_function, bool use_console_to_prompt_on_error) |
71 | { | 72 | { |
72 | configurationFilename = ""; | 73 | configurationFilename = ""; |
73 | configurationFromXMLNode = configuration_xml; | 74 | configurationFromXMLNode = configuration_xml; |
74 | configurationDescription = configuration_description; | 75 | configurationDescription = configuration_description; |
75 | loadFunction = load_function; | 76 | loadFunction = load_function; |
76 | resultFunction = result_function; | 77 | resultFunction = result_function; |
78 | useConsoleToPromptOnError = use_console_to_prompt_on_error; | ||
77 | } | 79 | } |
78 | 80 | ||
79 | public void setConfigurationFilename(string filename) | 81 | public void setConfigurationFilename(string filename) |
@@ -231,7 +233,7 @@ namespace OpenSim.Framework | |||
231 | 233 | ||
232 | if (attribute == null) | 234 | if (attribute == null) |
233 | { | 235 | { |
234 | if (configOption.configurationUseDefaultNoPrompt) | 236 | if (configOption.configurationUseDefaultNoPrompt || useConsoleToPromptOnError == false) |
235 | { | 237 | { |
236 | console_result = configOption.configurationDefault; | 238 | console_result = configOption.configurationDefault; |
237 | } | 239 | } |