Merge branch 'master' into careminster-presence-refactor

avinationmerge
Melanie 2010-09-26 23:57:06 +01:00
commit 9f17ae580d
5 changed files with 12 additions and 10 deletions

View File

@ -183,6 +183,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
if (m_TransferModule != null)
{
if (client != null)
im.fromAgentName = client.FirstName + " " + client.LastName;
m_TransferModule.SendInstantMessage(im,
delegate(bool success)

View File

@ -41,7 +41,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
public string WriteToFile(Scene scene, string dir)
{
string targetFileName = dir + "objects.xml";
string targetFileName = Path.Combine(dir, "objects.xml");
SaveSerialisedToFile(targetFileName, scene);

View File

@ -28,6 +28,7 @@
using OpenSim.Region.CoreModules.World.Terrain;
using OpenSim.Region.CoreModules.World.Terrain.FileLoaders;
using OpenSim.Region.Framework.Scenes;
using System.IO;
namespace OpenSim.Region.CoreModules.World.Serialiser
{
@ -38,7 +39,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
public string WriteToFile(Scene scene, string dir)
{
ITerrainLoader fileSystemExporter = new RAW32();
string targetFileName = dir + "heightmap.r32";
string targetFileName = Path.Combine(dir, "heightmap.r32");
lock (scene.Heightmap)
{

View File

@ -48,7 +48,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
private Commander m_commander = new Commander("export");
private List<Scene> m_regions = new List<Scene>();
private string m_savedir = "exports" + "/";
private string m_savedir = "exports";
private List<IFileSerialiser> m_serialisers = new List<IFileSerialiser>();
#region ISharedRegionModule Members
@ -192,14 +192,14 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
}
}
TextWriter regionInfoWriter = new StreamWriter(saveDir + "README.TXT");
TextWriter regionInfoWriter = new StreamWriter(Path.Combine(saveDir, "README.TXT"));
regionInfoWriter.WriteLine("Region Name: " + scene.RegionInfo.RegionName);
regionInfoWriter.WriteLine("Region ID: " + scene.RegionInfo.RegionID.ToString());
regionInfoWriter.WriteLine("Backup Time: UTC " + DateTime.UtcNow.ToString());
regionInfoWriter.WriteLine("Serialise Version: 0.1");
regionInfoWriter.Close();
TextWriter manifestWriter = new StreamWriter(saveDir + "region.manifest");
TextWriter manifestWriter = new StreamWriter(Path.Combine(saveDir, "region.manifest"));
foreach (string line in results)
{
manifestWriter.WriteLine(line);
@ -231,7 +231,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
if (region.RegionInfo.RegionName == (string) args[0])
{
// List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
SerialiseRegion(region, Path.Combine(m_savedir, region.RegionInfo.RegionID.ToString()));
}
}
}
@ -241,7 +241,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
foreach (Scene region in m_regions)
{
// List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
SerialiseRegion(region, Path.Combine(m_savedir, region.RegionInfo.RegionID.ToString()));
}
}

View File

@ -138,7 +138,7 @@
;; Path to decoded sculpty maps
;; Defaults to "j2kDecodeCache
;DecodedSculpMapPath = "j2kDecodeCache"
;DecodedSculptMapPath = "j2kDecodeCache"
; Choose one of the physics engines below
; OpenDynamicsEngine is by some distance the most developed physics engine