[0000047] System.IO.Path combine path
parent
7322d41d81
commit
1c87bdb464
|
@ -267,32 +267,32 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
|
|
||||||
//shouldn't have to read all this in from disk for every new client
|
//shouldn't have to read all this in from disk for every new client
|
||||||
string data_path = System.AppDomain.CurrentDomain.BaseDirectory + @"\layer_data\";
|
string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"layer_data");
|
||||||
|
|
||||||
//send layerdata
|
//send layerdata
|
||||||
LayerDataPacket layerpack = new LayerDataPacket();
|
LayerDataPacket layerpack = new LayerDataPacket();
|
||||||
layerpack.LayerID.Type = 76;
|
layerpack.LayerID.Type = 76;
|
||||||
this.SendLayerData(userInfo,ref layerpack, data_path+@"layerdata0.dat");
|
this.SendLayerData(userInfo,ref layerpack, System.IO.Path.Combine(data_path, @"layerdata0.dat"));
|
||||||
|
|
||||||
LayerDataPacket layerpack1 = new LayerDataPacket();
|
LayerDataPacket layerpack1 = new LayerDataPacket();
|
||||||
layerpack1.LayerID.Type = 76;
|
layerpack1.LayerID.Type = 76;
|
||||||
this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata1.dat");
|
this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata1.dat"));
|
||||||
|
|
||||||
LayerDataPacket layerpack2 = new LayerDataPacket();
|
LayerDataPacket layerpack2 = new LayerDataPacket();
|
||||||
layerpack2.LayerID.Type = 56;
|
layerpack2.LayerID.Type = 56;
|
||||||
this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata2.dat");
|
this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata2.dat"));
|
||||||
|
|
||||||
LayerDataPacket layerpack3 = new LayerDataPacket();
|
LayerDataPacket layerpack3 = new LayerDataPacket();
|
||||||
layerpack3.LayerID.Type = 55;
|
layerpack3.LayerID.Type = 55;
|
||||||
this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata3.dat");
|
this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata3.dat"));
|
||||||
|
|
||||||
LayerDataPacket layerpack4 = new LayerDataPacket();
|
LayerDataPacket layerpack4 = new LayerDataPacket();
|
||||||
layerpack4.LayerID.Type = 56;
|
layerpack4.LayerID.Type = 56;
|
||||||
this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata4.dat");
|
this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata4.dat"));
|
||||||
|
|
||||||
LayerDataPacket layerpack5 = new LayerDataPacket();
|
LayerDataPacket layerpack5 = new LayerDataPacket();
|
||||||
layerpack5.LayerID.Type = 55;
|
layerpack5.LayerID.Type = 55;
|
||||||
this.SendLayerData(userInfo, ref layerpack, data_path+@"layerdata5.dat");
|
this.SendLayerData(userInfo, ref layerpack, System.IO.Path.Combine(data_path, @"layerdata5.dat"));
|
||||||
|
|
||||||
//send intial set of captured prims data?
|
//send intial set of captured prims data?
|
||||||
this.Prim_Manager.ReadPrimDatabase( "objectdatabase.ini", userInfo);
|
this.Prim_Manager.ReadPrimDatabase( "objectdatabase.ini", userInfo);
|
||||||
|
|
|
@ -218,14 +218,14 @@ namespace OpenSim
|
||||||
string folder;
|
string folder;
|
||||||
if(Image)
|
if(Image)
|
||||||
{
|
{
|
||||||
folder = @"\textures\";
|
folder = @"textures";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
folder = @"\assets\";
|
folder = @"assets";
|
||||||
}
|
}
|
||||||
string data_path = System.AppDomain.CurrentDomain.BaseDirectory + folder;
|
string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, folder);
|
||||||
string filename = data_path+@info.filename;
|
string filename = System.IO.Path.Combine(data_path, @info.filename);
|
||||||
FileInfo fInfo = new FileInfo(filename);
|
FileInfo fInfo = new FileInfo(filename);
|
||||||
|
|
||||||
long numBytes = fInfo.Length;
|
long numBytes = fInfo.Length;
|
||||||
|
|
|
@ -310,10 +310,10 @@ namespace OpenSim
|
||||||
objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[num];
|
objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[num];
|
||||||
|
|
||||||
// int count=0;
|
// int count=0;
|
||||||
string data_path = System.AppDomain.CurrentDomain.BaseDirectory + @"\data\";
|
string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, @"data");
|
||||||
for(int cc = 0; cc < num; cc++)
|
for(int cc = 0; cc < num; cc++)
|
||||||
{
|
{
|
||||||
string filenam = data_path+@"prim_updates"+start+".dat";
|
string filenam = System.IO.Path.Combine(data_path, @"prim_updates"+start+".dat");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
//FileInfo fInfo = new FileInfo("objectupate"+start+".dat");
|
//FileInfo fInfo = new FileInfo("objectupate"+start+".dat");
|
||||||
FileInfo fInfo = new FileInfo(filenam);
|
FileInfo fInfo = new FileInfo(filenam);
|
||||||
|
|
Loading…
Reference in New Issue