aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/RegionInfo.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-04-27 21:11:02 +0000
committerAdam Frisby2007-04-27 21:11:02 +0000
commit6ce5b6e439e304ba8ce27a9e5bad3146feedd7f0 (patch)
treefa25cc297d83f70080b21f78e3bc04d32df5b00f /OpenSim.RegionServer/RegionInfo.cs
parent* Added new commandline option -config <configfile.xml> (diff)
downloadopensim-SC-6ce5b6e439e304ba8ce27a9e5bad3146feedd7f0.zip
opensim-SC-6ce5b6e439e304ba8ce27a9e5bad3146feedd7f0.tar.gz
opensim-SC-6ce5b6e439e304ba8ce27a9e5bad3146feedd7f0.tar.bz2
opensim-SC-6ce5b6e439e304ba8ce27a9e5bad3146feedd7f0.tar.xz
Major ass commit
Added new "Datastore" parameter to simconfig.xml which is passed to storage engines via a new Initialise() function.
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/RegionInfo.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/RegionInfo.cs b/OpenSim.RegionServer/RegionInfo.cs
index 2f8bfa1..a1923f5 100644
--- a/OpenSim.RegionServer/RegionInfo.cs
+++ b/OpenSim.RegionServer/RegionInfo.cs
@@ -36,6 +36,8 @@ namespace OpenSim
36 public string UserRecvKey = ""; 36 public string UserRecvKey = "";
37 private bool isSandbox; 37 private bool isSandbox;
38 38
39 public string DataStore;
40
39 public RegionInfo() 41 public RegionInfo()
40 { 42 {
41 43
@@ -144,6 +146,17 @@ namespace OpenSim
144 { 146 {
145 this.RegionLocY = (uint)Convert.ToUInt32(attri); 147 this.RegionLocY = (uint)Convert.ToUInt32(attri);
146 } 148 }
149
150 // Local storage datastore
151 attri = "";
152 attri = configData.GetAttribute("Datastore");
153 if (attri == "")
154 {
155 string datastore = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("Filename for local storage", "localworld.yap");
156 configData.SetAttribute("Datastore", datastore);
157 this.DataStore = datastore;
158 }
159
147 //Sim Listen Port 160 //Sim Listen Port
148 attri = ""; 161 attri = "";
149 attri = configData.GetAttribute("SimListenPort"); 162 attri = configData.GetAttribute("SimListenPort");