diff options
Diffstat (limited to 'AssetManagement.cs')
-rw-r--r-- | AssetManagement.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/AssetManagement.cs b/AssetManagement.cs index ad63733..0656494 100644 --- a/AssetManagement.cs +++ b/AssetManagement.cs | |||
@@ -218,14 +218,14 @@ namespace OpenSim | |||
218 | string folder; | 218 | string folder; |
219 | if(Image) | 219 | if(Image) |
220 | { | 220 | { |
221 | folder = @"\textures\"; | 221 | folder = @"textures"; |
222 | } | 222 | } |
223 | else | 223 | else |
224 | { | 224 | { |
225 | folder = @"\assets\"; | 225 | folder = @"assets"; |
226 | } | 226 | } |
227 | string data_path = System.AppDomain.CurrentDomain.BaseDirectory + folder; | 227 | string data_path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, folder); |
228 | string filename = data_path+@info.filename; | 228 | string filename = System.IO.Path.Combine(data_path, @info.filename); |
229 | FileInfo fInfo = new FileInfo(filename); | 229 | FileInfo fInfo = new FileInfo(filename); |
230 | 230 | ||
231 | long numBytes = fInfo.Length; | 231 | long numBytes = fInfo.Length; |