diff --git a/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs b/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs index ec97acd7a4..0e861a1509 100644 --- a/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs +++ b/OpenSim/Region/CoreModules/World/Serialiser/SerialiserModule.cs @@ -46,7 +46,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - private Commander m_commander = new Commander("export"); +// private Commander m_commander = new Commander("export"); private List m_regions = new List(); private string m_savedir = "exports"; private List m_serialisers = new List(); @@ -77,14 +77,13 @@ namespace OpenSim.Region.CoreModules.World.Serialiser m_serialisers.Add(new SerialiseObjects()); } - LoadCommanderCommands(); +// LoadCommanderCommands(); } - public void AddRegion(Scene scene) { - scene.RegisterModuleCommander(m_commander); - scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; +// scene.RegisterModuleCommander(m_commander); +// scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; scene.RegisterModuleInterface(this); lock (m_regions) @@ -211,18 +210,18 @@ namespace OpenSim.Region.CoreModules.World.Serialiser #endregion - private void EventManager_OnPluginConsole(string[] args) - { - if (args[0] == "export") - { - string[] tmpArgs = new string[args.Length - 2]; - int i = 0; - for (i = 2; i < args.Length; i++) - tmpArgs[i - 2] = args[i]; - - m_commander.ProcessConsoleCommand(args[1], tmpArgs); - } - } +// private void EventManager_OnPluginConsole(string[] args) +// { +// if (args[0] == "export") +// { +// string[] tmpArgs = new string[args.Length - 2]; +// int i = 0; +// for (i = 2; i < args.Length; i++) +// tmpArgs[i - 2] = args[i]; +// +// m_commander.ProcessConsoleCommand(args[1], tmpArgs); +// } +// } private void InterfaceSaveRegion(Object[] args) { @@ -245,15 +244,15 @@ namespace OpenSim.Region.CoreModules.World.Serialiser } } - private void LoadCommanderCommands() - { - Command serialiseSceneCommand = new Command("save", CommandIntentions.COMMAND_NON_HAZARDOUS, InterfaceSaveRegion, "Saves the named region into the exports directory."); - serialiseSceneCommand.AddArgument("region-name", "The name of the region you wish to export", "String"); - - Command serialiseAllScenesCommand = new Command("save-all",CommandIntentions.COMMAND_NON_HAZARDOUS, InterfaceSaveAllRegions, "Saves all regions into the exports directory."); - - m_commander.RegisterCommand("save", serialiseSceneCommand); - m_commander.RegisterCommand("save-all", serialiseAllScenesCommand); - } +// private void LoadCommanderCommands() +// { +// Command serialiseSceneCommand = new Command("save", CommandIntentions.COMMAND_NON_HAZARDOUS, InterfaceSaveRegion, "Saves the named region into the exports directory."); +// serialiseSceneCommand.AddArgument("region-name", "The name of the region you wish to export", "String"); +// +// Command serialiseAllScenesCommand = new Command("save-all",CommandIntentions.COMMAND_NON_HAZARDOUS, InterfaceSaveAllRegions, "Saves all regions into the exports directory."); +// +// m_commander.RegisterCommand("save", serialiseSceneCommand); +// m_commander.RegisterCommand("save-all", serialiseAllScenesCommand); +// } } }