aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorcw2007-02-12 01:41:44 +0000
committercw2007-02-12 01:41:44 +0000
commit1c87bdb464ca90a72d21b7851e89106c348ec8d8 (patch)
treeb9b728cfe71b1998d39eb28b70c844485b314a2c
parent[0000048] Animations (diff)
downloadopensim-SC_OLD-1c87bdb464ca90a72d21b7851e89106c348ec8d8.zip
opensim-SC_OLD-1c87bdb464ca90a72d21b7851e89106c348ec8d8.tar.gz
opensim-SC_OLD-1c87bdb464ca90a72d21b7851e89106c348ec8d8.tar.bz2
opensim-SC_OLD-1c87bdb464ca90a72d21b7851e89106c348ec8d8.tar.xz
[0000047] System.IO.Path combine path
-rw-r--r--Agent_Manager.cs14
-rw-r--r--AssetManagement.cs8
-rw-r--r--Prim_manager.cs4
3 files changed, 13 insertions, 13 deletions
diff --git a/Agent_Manager.cs b/Agent_Manager.cs
index a5b041c..ec70388 100644
--- a/Agent_Manager.cs
+++ b/Agent_Manager.cs
@@ -267,32 +267,32 @@ namespace OpenSim
267 { 267 {
268 268
269 //shouldn't have to read all this in from disk for every new client 269 //shouldn't have to read all this in from disk for every new client
270 string data_path = System.AppDomain.CurrentDomain.BaseDirectory + @"\layer_data\"; 270 string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"layer_data");
271 271
272 //send layerdata 272 //send layerdata
273 LayerDataPacket layerpack = new LayerDataPacket(); 273 LayerDataPacket layerpack = new LayerDataPacket();
274 layerpack.LayerID.Type = 76; 274 layerpack.LayerID.Type = 76;
275 this.SendLayerData(userInfo,ref layerpack, data_path+@"layerdata0.dat"); 275 this.SendLayerData(userInfo,ref layerpack, System.IO.Path.Combine(data_path, @"layerdata0.dat"));
276 276
277 LayerDataPacket layerpack1 = new LayerDataPacket(); 277 LayerDataPacket layerpack1 = new LayerDataPacket();
278 layerpack1.LayerID.Type = 76; 278 layerpack1.LayerID.Type = 76;
279 this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata1.dat"); 279 this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata1.dat"));
280 280
281 LayerDataPacket layerpack2 = new LayerDataPacket(); 281 LayerDataPacket layerpack2 = new LayerDataPacket();
282 layerpack2.LayerID.Type = 56; 282 layerpack2.LayerID.Type = 56;
283 this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata2.dat"); 283 this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata2.dat"));
284 284
285 LayerDataPacket layerpack3 = new LayerDataPacket(); 285 LayerDataPacket layerpack3 = new LayerDataPacket();
286 layerpack3.LayerID.Type = 55; 286 layerpack3.LayerID.Type = 55;
287 this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata3.dat"); 287 this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata3.dat"));
288 288
289 LayerDataPacket layerpack4 = new LayerDataPacket(); 289 LayerDataPacket layerpack4 = new LayerDataPacket();
290 layerpack4.LayerID.Type = 56; 290 layerpack4.LayerID.Type = 56;
291 this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata4.dat"); 291 this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata4.dat"));
292 292
293 LayerDataPacket layerpack5 = new LayerDataPacket(); 293 LayerDataPacket layerpack5 = new LayerDataPacket();
294 layerpack5.LayerID.Type = 55; 294 layerpack5.LayerID.Type = 55;
295 this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata5.dat"); 295 this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata5.dat"));
296 296
297 //send intial set of captured prims data? 297 //send intial set of captured prims data?
298 this.Prim_Manager.ReadPrimDatabase( "objectdatabase.ini", userInfo); 298 this.Prim_Manager.ReadPrimDatabase( "objectdatabase.ini", userInfo);
diff --git a/AssetManagement.cs b/AssetManagement.cs
index ad63733..0656494 100644
--- a/AssetManagement.cs
+++ b/AssetManagement.cs
@@ -218,14 +218,14 @@ namespace OpenSim
218 string folder; 218 string folder;
219 if(Image) 219 if(Image)
220 { 220 {
221 folder = @"\textures\"; 221 folder = @"textures";
222 } 222 }
223 else 223 else
224 { 224 {
225 folder = @"\assets\"; 225 folder = @"assets";
226 } 226 }
227 string data_path = System.AppDomain.CurrentDomain.BaseDirectory + folder; 227 string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, folder);
228 string filename = data_path+@info.filename; 228 string filename = System.IO.Path.Combine(data_path, @info.filename);
229 FileInfo fInfo = new FileInfo(filename); 229 FileInfo fInfo = new FileInfo(filename);
230 230
231 long numBytes = fInfo.Length; 231 long numBytes = fInfo.Length;
diff --git a/Prim_manager.cs b/Prim_manager.cs
index aa1c32a..3b6af10 100644
--- a/Prim_manager.cs
+++ b/Prim_manager.cs
@@ -310,10 +310,10 @@ namespace OpenSim
310 objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[num]; 310 objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[num];
311 311
312 // int count=0; 312 // int count=0;
313 string data_path = System.AppDomain.CurrentDomain.BaseDirectory + @"\data\"; 313 string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"data");
314 for(int cc = 0; cc < num; cc++) 314 for(int cc = 0; cc < num; cc++)
315 { 315 {
316 string filenam = data_path+@"prim_updates"+start+".dat"; 316 string filenam = System.IO.Path.Combine(data_path, @"prim_updates"+start+".dat");
317 int i = 0; 317 int i = 0;
318 //FileInfo fInfo = new FileInfo("objectupate"+start+".dat"); 318 //FileInfo fInfo = new FileInfo("objectupate"+start+".dat");
319 FileInfo fInfo = new FileInfo(filenam); 319 FileInfo fInfo = new FileInfo(filenam);