From 88ead9ee63fe87b16d7c24b3a38bf6567f3166f6 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 24 Nov 2009 17:28:38 +0000
Subject: pass all command parameters to load/save oar, not just the filename
unfortunately, these commands cannot yet be properly relocated to the region
modules due to deficiencies in the region module infrastructure
---
OpenSim/Region/Application/OpenSim.cs | 18 ++----------------
OpenSim/Region/Application/OpenSimBase.cs | 5 -----
2 files changed, 2 insertions(+), 21 deletions(-)
(limited to 'OpenSim/Region/Application')
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 60c34df..f9be1e2 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -1294,14 +1294,7 @@ namespace OpenSim
{
try
{
- if (cmdparams.Length > 2)
- {
- m_sceneManager.LoadArchiveToCurrentScene(cmdparams[2]);
- }
- else
- {
- m_sceneManager.LoadArchiveToCurrentScene(DEFAULT_OAR_BACKUP_FILENAME);
- }
+ m_sceneManager.LoadArchiveToCurrentScene(cmdparams);
}
catch (Exception e)
{
@@ -1315,14 +1308,7 @@ namespace OpenSim
///
protected void SaveOar(string module, string[] cmdparams)
{
- if (cmdparams.Length > 2)
- {
- m_sceneManager.SaveCurrentSceneToArchive(cmdparams[2]);
- }
- else
- {
- m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME);
- }
+ m_sceneManager.SaveCurrentSceneToArchive(cmdparams);
}
private static string CombineParams(string[] commandParams, int pos)
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index cc18f1a..391856b 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -75,11 +75,6 @@ namespace OpenSim
///
protected const string DEFAULT_PRIM_BACKUP_FILENAME = "prim-backup.xml";
- ///
- /// The file used to load and save an opensimulator archive if no filename has been specified
- ///
- protected const string DEFAULT_OAR_BACKUP_FILENAME = "region.oar";
-
public ConfigSettings ConfigurationSettings
{
get { return m_configSettings; }
--
cgit v1.1