diff options
-rw-r--r-- | OpenSim/Services/AssetService/AssetService.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs index 80d58e1..915596e 100644 --- a/OpenSim/Services/AssetService/AssetService.cs +++ b/OpenSim/Services/AssetService/AssetService.cs | |||
@@ -223,13 +223,17 @@ namespace OpenSim.Services.AssetService | |||
223 | return; | 223 | return; |
224 | } | 224 | } |
225 | 225 | ||
226 | using (FileStream fs = new FileStream(rawAssetId, FileMode.CreateNew)) | 226 | string fileName = rawAssetId; |
227 | |||
228 | using (FileStream fs = new FileStream(fileName, FileMode.CreateNew)) | ||
227 | { | 229 | { |
228 | using (BinaryWriter bw = new BinaryWriter(fs)) | 230 | using (BinaryWriter bw = new BinaryWriter(fs)) |
229 | { | 231 | { |
230 | bw.Write(asset.Data); | 232 | bw.Write(asset.Data); |
231 | } | 233 | } |
232 | } | 234 | } |
235 | |||
236 | MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); | ||
233 | } | 237 | } |
234 | 238 | ||
235 | void HandleShowDigest(string module, string[] args) | 239 | void HandleShowDigest(string module, string[] args) |