diff options
author | Mike Mazur | 2009-03-16 00:12:25 +0000 |
---|---|---|
committer | Mike Mazur | 2009-03-16 00:12:25 +0000 |
commit | f28886e26d32eaf97180d91dcd42fa045990bdd0 (patch) | |
tree | 69f36a36c809c9961758897d43c85413b1d4dd77 /OpenSim/Region/CoreModules/Avatar | |
parent | This patch improves MXP connect and disconnect functionality. (diff) | |
download | opensim-SC_OLD-f28886e26d32eaf97180d91dcd42fa045990bdd0.zip opensim-SC_OLD-f28886e26d32eaf97180d91dcd42fa045990bdd0.tar.gz opensim-SC_OLD-f28886e26d32eaf97180d91dcd42fa045990bdd0.tar.bz2 opensim-SC_OLD-f28886e26d32eaf97180d91dcd42fa045990bdd0.tar.xz |
Rename OpenSim.Framework.Archive to OpenSim.Framework.Serialization
Update using statements and prebuild.xml. Also trim trailing whitespace.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
3 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs index 4ad9974..8dec2c4 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | |||
@@ -35,7 +35,7 @@ using System.Xml; | |||
35 | using log4net; | 35 | using log4net; |
36 | using OpenMetaverse; | 36 | using OpenMetaverse; |
37 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Archive; | 38 | using OpenSim.Framework.Serialization; |
39 | using OpenSim.Framework.Communications; | 39 | using OpenSim.Framework.Communications; |
40 | using OpenSim.Framework.Communications.Cache; | 40 | using OpenSim.Framework.Communications.Cache; |
41 | using OpenSim.Region.CoreModules.World.Archiver; | 41 | using OpenSim.Region.CoreModules.World.Archiver; |
@@ -208,19 +208,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
208 | failedAssetRestores++; | 208 | failedAssetRestores++; |
209 | } | 209 | } |
210 | else if (filePath.StartsWith(ArchiveConstants.INVENTORY_PATH)) | 210 | else if (filePath.StartsWith(ArchiveConstants.INVENTORY_PATH)) |
211 | { | 211 | { |
212 | string fsPath = filePath.Substring(ArchiveConstants.INVENTORY_PATH.Length); | 212 | string fsPath = filePath.Substring(ArchiveConstants.INVENTORY_PATH.Length); |
213 | 213 | ||
214 | // Remove the file portion if we aren't already dealing with a directory path | 214 | // Remove the file portion if we aren't already dealing with a directory path |
215 | if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType) | 215 | if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType) |
216 | fsPath = fsPath.Remove(fsPath.LastIndexOf("/") + 1); | 216 | fsPath = fsPath.Remove(fsPath.LastIndexOf("/") + 1); |
217 | 217 | ||
218 | string originalFsPath = fsPath; | 218 | string originalFsPath = fsPath; |
219 | 219 | ||
220 | m_log.DebugFormat("[INVENTORY ARCHIVER]: Loading to folder {0}", fsPath); | 220 | m_log.DebugFormat("[INVENTORY ARCHIVER]: Loading to folder {0}", fsPath); |
221 | 221 | ||
222 | InventoryFolderImpl foundFolder = null; | 222 | InventoryFolderImpl foundFolder = null; |
223 | 223 | ||
224 | // XXX: Nasty way of dealing with a path that has no directory component | 224 | // XXX: Nasty way of dealing with a path that has no directory component |
225 | if (fsPath.Length > 0) | 225 | if (fsPath.Length > 0) |
226 | { | 226 | { |
@@ -323,15 +323,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
323 | if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType) | 323 | if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType) |
324 | { | 324 | { |
325 | InventoryItemBase item = LoadInvItem(m_asciiEncoding.GetString(data)); | 325 | InventoryItemBase item = LoadInvItem(m_asciiEncoding.GetString(data)); |
326 | 326 | ||
327 | if (item != null) | 327 | if (item != null) |
328 | { | 328 | { |
329 | // Don't use the item ID that's in the file | 329 | // Don't use the item ID that's in the file |
330 | item.ID = UUID.Random(); | 330 | item.ID = UUID.Random(); |
331 | 331 | ||
332 | item.Creator = m_userInfo.UserProfile.ID; | 332 | item.Creator = m_userInfo.UserProfile.ID; |
333 | item.Owner = m_userInfo.UserProfile.ID; | 333 | item.Owner = m_userInfo.UserProfile.ID; |
334 | 334 | ||
335 | // Reset folder ID to the one in which we want to load it | 335 | // Reset folder ID to the one in which we want to load it |
336 | item.Folder = foundFolder.ID; | 336 | item.Folder = foundFolder.ID; |
337 | 337 | ||
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 364dc28..460fbf5 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -34,7 +34,7 @@ using System.Xml; | |||
34 | using log4net; | 34 | using log4net; |
35 | using OpenMetaverse; | 35 | using OpenMetaverse; |
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Archive; | 37 | using OpenSim.Framework.Serialization; |
38 | using OpenSim.Framework.Communications; | 38 | using OpenSim.Framework.Communications; |
39 | using OpenSim.Framework.Communications.Cache; | 39 | using OpenSim.Framework.Communications.Cache; |
40 | using OpenSim.Region.CoreModules.World.Archiver; | 40 | using OpenSim.Region.CoreModules.World.Archiver; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs index ea72f08..bd8d325 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | |||
@@ -34,7 +34,7 @@ using NUnit.Framework.SyntaxHelpers; | |||
34 | using OpenMetaverse; | 34 | using OpenMetaverse; |
35 | using OpenSim.Data; | 35 | using OpenSim.Data; |
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Archive; | 37 | using OpenSim.Framework.Serialization; |
38 | using OpenSim.Framework.Communications; | 38 | using OpenSim.Framework.Communications; |
39 | using OpenSim.Framework.Communications.Cache; | 39 | using OpenSim.Framework.Communications.Cache; |
40 | using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver; | 40 | using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver; |