diff options
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 56 | ||||
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 5 |
2 files changed, 0 insertions, 61 deletions
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 | |||
149 | "Save a region's data to an OAR archive", | 149 | "Save a region's data to an OAR archive", |
150 | "More information on forthcoming options here soon", SaveOar); | 150 | "More information on forthcoming options here soon", SaveOar); |
151 | 151 | ||
152 | /* | ||
153 | m_console.Commands.AddCommand("region", false, "save inventory", | ||
154 | "save inventory <first> <last> <path> <file>", | ||
155 | "Save user inventory data", SaveInv); | ||
156 | |||
157 | m_console.Commands.AddCommand("region", false, "load inventory", | ||
158 | "load inventory <first> <last> <path> <file>", | ||
159 | "Load user inventory data", LoadInv); | ||
160 | */ | ||
161 | |||
162 | m_console.Commands.AddCommand("region", false, "edit scale", | 152 | m_console.Commands.AddCommand("region", false, "edit scale", |
163 | "edit scale <name> <x> <y> <z>", | 153 | "edit scale <name> <x> <y> <z>", |
164 | "Change the scale of a named prim", HandleEditScale); | 154 | "Change the scale of a named prim", HandleEditScale); |
@@ -1103,52 +1093,6 @@ namespace OpenSim | |||
1103 | } | 1093 | } |
1104 | } | 1094 | } |
1105 | 1095 | ||
1106 | /// <summary> | ||
1107 | /// Load inventory from an inventory file archive | ||
1108 | /// </summary> | ||
1109 | /// <param name="cmdparams"></param> | ||
1110 | protected void LoadInv(string module, string[] cmdparams) | ||
1111 | { | ||
1112 | m_log.Error("[CONSOLE]: This command has not yet been implemented!"); | ||
1113 | if (cmdparams.Length < 5) | ||
1114 | { | ||
1115 | m_log.Error("[CONSOLE]: usage is load-inv <first name> <last name> <inventory path> [<load file path>]"); | ||
1116 | return; | ||
1117 | } | ||
1118 | |||
1119 | string firstName = cmdparams[2]; | ||
1120 | string lastName = cmdparams[3]; | ||
1121 | string invPath = cmdparams[4]; | ||
1122 | string loadPath = (cmdparams.Length > 5 ? cmdparams[5] : DEFAULT_INV_BACKUP_FILENAME); | ||
1123 | |||
1124 | new InventoryArchiveReadRequest( | ||
1125 | m_sceneManager.CurrentOrFirstScene, m_commsManager).execute( | ||
1126 | firstName, lastName, invPath, loadPath); | ||
1127 | } | ||
1128 | |||
1129 | /// <summary> | ||
1130 | /// Save inventory to a file archive | ||
1131 | /// </summary> | ||
1132 | /// <param name="cmdparams"></param> | ||
1133 | protected void SaveInv(string module, string[] cmdparams) | ||
1134 | { | ||
1135 | m_log.Error("[CONSOLE]: This command has not yet been implemented!"); | ||
1136 | if (cmdparams.Length < 5) | ||
1137 | { | ||
1138 | m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path> [<save file path>]"); | ||
1139 | return; | ||
1140 | } | ||
1141 | |||
1142 | string firstName = cmdparams[2]; | ||
1143 | string lastName = cmdparams[3]; | ||
1144 | string invPath = cmdparams[4]; | ||
1145 | string savePath = (cmdparams.Length > 5 ? cmdparams[5] : DEFAULT_INV_BACKUP_FILENAME); | ||
1146 | |||
1147 | new InventoryArchiveWriteRequest( | ||
1148 | m_sceneManager.CurrentOrFirstScene,m_commsManager).execute( | ||
1149 | firstName, lastName, invPath, savePath); | ||
1150 | } | ||
1151 | |||
1152 | private static string CombineParams(string[] commandParams, int pos) | 1096 | private static string CombineParams(string[] commandParams, int pos) |
1153 | { | 1097 | { |
1154 | string result = String.Empty; | 1098 | 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 | |||
71 | /// The file used to load and save an opensim archive if no filename has been specified | 71 | /// The file used to load and save an opensim archive if no filename has been specified |
72 | /// </summary> | 72 | /// </summary> |
73 | protected const string DEFAULT_OAR_BACKUP_FILENAME = "scene_oar.tar.gz"; | 73 | protected const string DEFAULT_OAR_BACKUP_FILENAME = "scene_oar.tar.gz"; |
74 | |||
75 | /// <summary> | ||
76 | /// The file to load and save inventory if no filename has been specified | ||
77 | /// </summary> | ||
78 | protected const string DEFAULT_INV_BACKUP_FILENAME = "opensim_inv.tar.gz"; | ||
79 | 74 | ||
80 | public ConfigSettings ConfigurationSettings | 75 | public ConfigSettings ConfigurationSettings |
81 | { | 76 | { |