mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Made some changes to the load/save xml format, So that the old format can still be used, I have added new console commands of "load-xml2" and "save-xml2", if the old versions worked for you then please continue using them (at least for now). The new versions haven't been tested that much, so their format could be subject to change.
This commit is contained in:
@@ -146,7 +146,6 @@ namespace OpenSim
|
||||
m_networkServersInfo.loadFromConfiguration(m_config);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Performs initialisation of the scene, such as loading configuration from disk.
|
||||
/// </summary>
|
||||
@@ -485,6 +484,28 @@ namespace OpenSim
|
||||
}
|
||||
break;
|
||||
|
||||
case "save-xml2":
|
||||
if (cmdparams.Length > 0)
|
||||
{
|
||||
m_sceneManager.SaveCurrentSceneToXml2(cmdparams[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_sceneManager.SaveCurrentSceneToXml2(DEFAULT_PRIM_BACKUP_FILENAME);
|
||||
}
|
||||
break;
|
||||
|
||||
case "load-xml2":
|
||||
if (cmdparams.Length > 0)
|
||||
{
|
||||
m_sceneManager.LoadCurrentSceneFromXml2(cmdparams[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_sceneManager.LoadCurrentSceneFromXml2(DEFAULT_PRIM_BACKUP_FILENAME);
|
||||
}
|
||||
break;
|
||||
|
||||
case "terrain":
|
||||
if (!m_sceneManager.RunTerrainCmdOnCurrentScene(cmdparams, ref result))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user