diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs | 29 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs b/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs index fbadd91..01066e6 100644 --- a/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
29 | using System.IO; | 30 | using System.IO; |
30 | using OpenSim.Services.Interfaces; | 31 | using OpenSim.Services.Interfaces; |
31 | 32 | ||
@@ -59,6 +60,20 @@ namespace OpenSim.Region.Framework.Interfaces | |||
59 | /// <param name="loadStream">The stream from which the inventory archive will be loaded</param> | 60 | /// <param name="loadStream">The stream from which the inventory archive will be loaded</param> |
60 | /// <returns>true if the first stage of the operation succeeded, false otherwise</returns> | 61 | /// <returns>true if the first stage of the operation succeeded, false otherwise</returns> |
61 | bool DearchiveInventory(string firstName, string lastName, string invPath, string pass, Stream loadStream); | 62 | bool DearchiveInventory(string firstName, string lastName, string invPath, string pass, Stream loadStream); |
63 | |||
64 | /// <summary> | ||
65 | /// Dearchive a user's inventory folder from the given stream | ||
66 | /// </summary> | ||
67 | /// <param name="firstName"></param> | ||
68 | /// <param name="lastName"></param> | ||
69 | /// <param name="invPath">The inventory path in which to place the loaded folders and items</param> | ||
70 | /// <param name="loadStream">The stream from which the inventory archive will be loaded</param> | ||
71 | /// <param name="options">Dearchiving options. At the moment, the only option is ("merge", true). This merges | ||
72 | /// the loaded IAR with existing folders where possible.</param> | ||
73 | /// <returns>true if the first stage of the operation succeeded, false otherwise</returns> | ||
74 | bool DearchiveInventory( | ||
75 | string firstName, string lastName, string invPath, string pass, Stream loadStream, | ||
76 | Dictionary<string, object> options); | ||
62 | 77 | ||
63 | /// <summary> | 78 | /// <summary> |
64 | /// Archive a user's inventory folder to the given stream | 79 | /// Archive a user's inventory folder to the given stream |
@@ -70,5 +85,19 @@ namespace OpenSim.Region.Framework.Interfaces | |||
70 | /// <param name="saveStream">The stream to which the inventory archive will be saved</param> | 85 | /// <param name="saveStream">The stream to which the inventory archive will be saved</param> |
71 | /// <returns>true if the first stage of the operation succeeded, false otherwise</returns> | 86 | /// <returns>true if the first stage of the operation succeeded, false otherwise</returns> |
72 | bool ArchiveInventory(Guid id, string firstName, string lastName, string invPath, string pass, Stream saveStream); | 87 | bool ArchiveInventory(Guid id, string firstName, string lastName, string invPath, string pass, Stream saveStream); |
88 | |||
89 | /// <summary> | ||
90 | /// Archive a user's inventory folder to the given stream | ||
91 | /// </summary> | ||
92 | /// <param name="id">ID representing this request. This will later be returned in the save event</param> | ||
93 | /// <param name="firstName"></param> | ||
94 | /// <param name="lastName"></param> | ||
95 | /// <param name="invPath">The inventory path from which the inventory should be saved.</param> | ||
96 | /// <param name="saveStream">The stream to which the inventory archive will be saved</param> | ||
97 | /// <param name="options">Archiving options. Currently, there are none.</param> | ||
98 | /// <returns>true if the first stage of the operation succeeded, false otherwise</returns> | ||
99 | bool ArchiveInventory( | ||
100 | Guid id, string firstName, string lastName, string invPath, string pass, Stream saveStream, | ||
101 | Dictionary<string, object> options); | ||
73 | } | 102 | } |
74 | } | 103 | } |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 19329a8..756b81e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4039,7 +4039,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
4039 | // bordercross if position is outside of region | 4039 | // bordercross if position is outside of region |
4040 | 4040 | ||
4041 | if (!result) | 4041 | if (!result) |
4042 | { | ||
4042 | regionHandle = m_regInfo.RegionHandle; | 4043 | regionHandle = m_regInfo.RegionHandle; |
4044 | } | ||
4043 | else | 4045 | else |
4044 | { | 4046 | { |
4045 | // not in this region, undo the shift! | 4047 | // not in this region, undo the shift! |