aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Base/ServicesServerBase.cs
diff options
context:
space:
mode:
authordiva2009-06-08 17:50:17 +0000
committerdiva2009-06-08 17:50:17 +0000
commitb43fc318fb6c50a0c78843f04c2fb07e3bc5d283 (patch)
tree91b7ab6385044ba19969548c872791dd3d8e5cc7 /OpenSim/Server/Base/ServicesServerBase.cs
parentMaking the prompt configurable in the server shell. Default is "Server". (diff)
downloadopensim-SC_OLD-b43fc318fb6c50a0c78843f04c2fb07e3bc5d283.zip
opensim-SC_OLD-b43fc318fb6c50a0c78843f04c2fb07e3bc5d283.tar.gz
opensim-SC_OLD-b43fc318fb6c50a0c78843f04c2fb07e3bc5d283.tar.bz2
opensim-SC_OLD-b43fc318fb6c50a0c78843f04c2fb07e3bc5d283.tar.xz
That didn't quite work. Trying this instead -- prompt given in the cmd line.
Diffstat (limited to 'OpenSim/Server/Base/ServicesServerBase.cs')
-rw-r--r--OpenSim/Server/Base/ServicesServerBase.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Server/Base/ServicesServerBase.cs b/OpenSim/Server/Base/ServicesServerBase.cs
index 6f7c938..e1cdf66 100644
--- a/OpenSim/Server/Base/ServicesServerBase.cs
+++ b/OpenSim/Server/Base/ServicesServerBase.cs
@@ -79,6 +79,7 @@ namespace OpenSim.Server.Base
79 argvConfig.AddSwitch("Startup", "console", "c"); 79 argvConfig.AddSwitch("Startup", "console", "c");
80 argvConfig.AddSwitch("Startup", "logfile", "l"); 80 argvConfig.AddSwitch("Startup", "logfile", "l");
81 argvConfig.AddSwitch("Startup", "inifile", "i"); 81 argvConfig.AddSwitch("Startup", "inifile", "i");
82 argvConfig.AddSwitch("Startup", "prompt", "p");
82 83
83 // Automagically create the ini file name 84 // Automagically create the ini file name
84 // 85 //
@@ -87,11 +88,16 @@ namespace OpenSim.Server.Base
87 88
88 string iniFile = assemblyName.Name + ".ini"; 89 string iniFile = assemblyName.Name + ".ini";
89 90
90 // Check if a file name was given on the command line
91 //
92 IConfig startupConfig = argvConfig.Configs["Startup"]; 91 IConfig startupConfig = argvConfig.Configs["Startup"];
93 if (startupConfig != null) 92 if (startupConfig != null)
93 {
94 // Check if a file name was given on the command line
95 //
94 iniFile = startupConfig.GetString("inifile", iniFile); 96 iniFile = startupConfig.GetString("inifile", iniFile);
97 //
98 // Check if a prompt was given on the command line
99 prompt = startupConfig.GetString("prompt", prompt);
100 }
95 101
96 // Find out of the file name is a URI and remote load it 102 // Find out of the file name is a URI and remote load it
97 // if it's possible. Load it as a local file otherwise. 103 // if it's possible. Load it as a local file otherwise.