From e7b3e7b749388dd8029ed7de6208fdf557e91695 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 29 Jul 2008 14:28:08 +0000 Subject: * Put in stub code for inventory backup. * No user functionality yet (and not for quite some time) --- OpenSim/Region/Application/OpenSim.cs | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Application/OpenSim.cs') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 27b6694..66c7c48 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -323,6 +323,10 @@ namespace OpenSim case "save-oar": SaveOar(cmdparams); break; + + case "save-inv": + SaveInv(cmdparams); + break; case "plugin": m_sceneManager.SendCommandToPluginModules(cmdparams); @@ -724,9 +728,13 @@ namespace OpenSim } } + /// + /// Load a whole region from an opensim archive. + /// + /// protected void LoadOar(string[] cmdparams) { - m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this."); + m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this yet."); m_log.Warn("[CONSOLE]: See http://opensimulator.org/wiki/OpenSim_Archives for more details."); if (cmdparams.Length > 0) @@ -739,9 +747,13 @@ namespace OpenSim } } + /// + /// Save a region to a file, including all the assets needed to restore it. + /// + /// protected void SaveOar(string[] cmdparams) { - m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this."); + m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this yet."); m_log.Warn("[CONSOLE]: See http://opensimulator.org/wiki/OpenSim_Archives for more details."); if (cmdparams.Length > 0) @@ -752,7 +764,16 @@ namespace OpenSim { m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME); } - } + } + + /// + /// Save inventory to a file. + /// + /// + protected void SaveInv(string[] cmdparams) + { + m_log.Error("[CONSOLE]: This has not been implemented yet!"); + } private static string CombineParams(string[] commandParams, int pos) { -- cgit v1.1