diff options
author | Justin Clarke Casey | 2008-06-26 17:36:54 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-26 17:36:54 +0000 |
commit | fa5f27acfa753d5f9e15b222bb826ea4a5f313b6 (patch) | |
tree | e7ef51dfd1d1c9d7608215ef8ba5fe85620e65b2 /OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs | |
parent | small change to last commit (diff) | |
download | opensim-SC_OLD-fa5f27acfa753d5f9e15b222bb826ea4a5f313b6.zip opensim-SC_OLD-fa5f27acfa753d5f9e15b222bb826ea4a5f313b6.tar.gz opensim-SC_OLD-fa5f27acfa753d5f9e15b222bb826ea4a5f313b6.tar.bz2 opensim-SC_OLD-fa5f27acfa753d5f9e15b222bb826ea4a5f313b6.tar.xz |
* Put extensions on all assets in an archive
* Choice of extensions is a scratch set, may not yet be correct
* This facility is not useable yet - not least because I've just come across a significant save bug I need to investigate
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs index 8b4708c..4922362 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs | |||
@@ -86,10 +86,10 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
86 | 86 | ||
87 | string extension = string.Empty; | 87 | string extension = string.Empty; |
88 | 88 | ||
89 | if ((sbyte)AssetType.Texture == asset.Type) | 89 | if (ArchiveConstants.ASSET_TYPE_TO_EXTENSION.ContainsKey(asset.Type)) |
90 | { | 90 | { |
91 | extension = ArchiveConstants.TEXTURE_EXTENSION; | 91 | extension = ArchiveConstants.ASSET_TYPE_TO_EXTENSION[asset.Type]; |
92 | } | 92 | } |
93 | 93 | ||
94 | xtw.WriteElementString("filename", uuid.ToString() + extension); | 94 | xtw.WriteElementString("filename", uuid.ToString() + extension); |
95 | 95 | ||
@@ -125,9 +125,9 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
125 | { | 125 | { |
126 | string extension = string.Empty; | 126 | string extension = string.Empty; |
127 | 127 | ||
128 | if ((sbyte)AssetType.Texture == asset.Type) | 128 | if (ArchiveConstants.ASSET_TYPE_TO_EXTENSION.ContainsKey(asset.Type)) |
129 | { | 129 | { |
130 | extension = ArchiveConstants.TEXTURE_EXTENSION; | 130 | extension = ArchiveConstants.ASSET_TYPE_TO_EXTENSION[asset.Type]; |
131 | } | 131 | } |
132 | 132 | ||
133 | archive.AddFile( | 133 | archive.AddFile( |