From 04d6a810b6df79b34f9754e0a1b189c070407727 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 11 Feb 2009 17:34:12 +0000 Subject: * More inventory archive invocation to a proper region module * Not ready for use yet --- OpenSim/Region/Application/OpenSim.cs | 56 ------------------------------- OpenSim/Region/Application/OpenSimBase.cs | 5 --- 2 files changed, 61 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 0b8bd53..fbe3813 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -149,16 +149,6 @@ namespace OpenSim "Save a region's data to an OAR archive", "More information on forthcoming options here soon", SaveOar); - /* - m_console.Commands.AddCommand("region", false, "save inventory", - "save inventory ", - "Save user inventory data", SaveInv); - - m_console.Commands.AddCommand("region", false, "load inventory", - "load inventory ", - "Load user inventory data", LoadInv); - */ - m_console.Commands.AddCommand("region", false, "edit scale", "edit scale ", "Change the scale of a named prim", HandleEditScale); @@ -1103,52 +1093,6 @@ namespace OpenSim } } - /// - /// Load inventory from an inventory file archive - /// - /// - protected void LoadInv(string module, string[] cmdparams) - { - m_log.Error("[CONSOLE]: This command has not yet been implemented!"); - if (cmdparams.Length < 5) - { - m_log.Error("[CONSOLE]: usage is load-inv []"); - return; - } - - string firstName = cmdparams[2]; - string lastName = cmdparams[3]; - string invPath = cmdparams[4]; - string loadPath = (cmdparams.Length > 5 ? cmdparams[5] : DEFAULT_INV_BACKUP_FILENAME); - - new InventoryArchiveReadRequest( - m_sceneManager.CurrentOrFirstScene, m_commsManager).execute( - firstName, lastName, invPath, loadPath); - } - - /// - /// Save inventory to a file archive - /// - /// - protected void SaveInv(string module, string[] cmdparams) - { - m_log.Error("[CONSOLE]: This command has not yet been implemented!"); - if (cmdparams.Length < 5) - { - m_log.Error("[CONSOLE]: usage is save-inv []"); - return; - } - - string firstName = cmdparams[2]; - string lastName = cmdparams[3]; - string invPath = cmdparams[4]; - string savePath = (cmdparams.Length > 5 ? cmdparams[5] : DEFAULT_INV_BACKUP_FILENAME); - - new InventoryArchiveWriteRequest( - m_sceneManager.CurrentOrFirstScene,m_commsManager).execute( - firstName, lastName, invPath, savePath); - } - private static string CombineParams(string[] commandParams, int pos) { string result = String.Empty; diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index d86a47b..6592a9b 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -71,11 +71,6 @@ namespace OpenSim /// The file used to load and save an opensim archive if no filename has been specified /// protected const string DEFAULT_OAR_BACKUP_FILENAME = "scene_oar.tar.gz"; - - /// - /// The file to load and save inventory if no filename has been specified - /// - protected const string DEFAULT_INV_BACKUP_FILENAME = "opensim_inv.tar.gz"; public ConfigSettings ConfigurationSettings { -- cgit v1.1