From 2681de366b22d1fc57d808c0cd98da0426a0379e Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 22 Oct 2007 11:06:54 +0000 Subject: 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. --- OpenSim/Region/Application/OpenSimMain.cs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application/OpenSimMain.cs') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index c367537..d2f5648 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -146,7 +146,6 @@ namespace OpenSim m_networkServersInfo.loadFromConfiguration(m_config); } - /// /// Performs initialisation of the scene, such as loading configuration from disk. /// @@ -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)) { -- cgit v1.1