mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Mantis #2133
Thank you, Xugu Madison and ChrisDown, for a patch that fixes linux filename extensions from .Xml back to .xml
This commit is contained in:
@@ -38,7 +38,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
/// <summary>
|
||||
/// The location of the archive control file
|
||||
/// </summary>
|
||||
public static readonly string CONTROL_FILE_PATH = "archive.Xml";
|
||||
public static readonly string CONTROL_FILE_PATH = "archive.xml";
|
||||
|
||||
/// <summary>
|
||||
/// Path for the assets held in an archive
|
||||
@@ -48,7 +48,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
/// <summary>
|
||||
/// Path for the assets metadata file
|
||||
/// </summary>
|
||||
//public static readonly string ASSETS_METADATA_PATH = "assets.Xml";
|
||||
//public static readonly string ASSETS_METADATA_PATH = "assets.xml";
|
||||
|
||||
/// <summary>
|
||||
/// Path for the prims file
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
string serializedObject = m_serialiser.SaveGroupToXml2(sceneObject);
|
||||
string filename
|
||||
= string.Format(
|
||||
"{0}{1}_{2:000}-{3:000}-{4:000}__{5}.Xml",
|
||||
"{0}{1}_{2:000}-{3:000}-{4:000}__{5}.xml",
|
||||
ArchiveConstants.OBJECTS_PATH, sceneObject.Name,
|
||||
Math.Round(position.X), Math.Round(position.Y), Math.Round(position.Z),
|
||||
sceneObject.UUID);
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
|
||||
xtw.WriteEndDocument();
|
||||
|
||||
archive.AddFile("assets.Xml", sw.ToString());
|
||||
archive.AddFile("assets.xml", sw.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -40,11 +40,11 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser
|
||||
|
||||
public string WriteToFile(Scene scene, string dir)
|
||||
{
|
||||
string targetFileName = dir + "objects.Xml";
|
||||
string targetFileName = dir + "objects.xml";
|
||||
|
||||
SaveSerialisedToFile(targetFileName, scene);
|
||||
|
||||
return "objects.Xml";
|
||||
return "objects.xml";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user