aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Base
diff options
context:
space:
mode:
authorUbitUmarov2015-08-28 20:54:59 +0100
committerUbitUmarov2015-08-28 20:54:59 +0100
commit46054d4f0258c8df91c2e0f081af2ea87375b515 (patch)
tree2a60a4f2de6b5ad57f98bf99aef8ff0cbf35b8b1 /OpenSim/Services/Base
parent review llLoginService for var support (diff)
downloadopensim-SC_OLD-46054d4f0258c8df91c2e0f081af2ea87375b515.zip
opensim-SC_OLD-46054d4f0258c8df91c2e0f081af2ea87375b515.tar.gz
opensim-SC_OLD-46054d4f0258c8df91c2e0f081af2ea87375b515.tar.bz2
opensim-SC_OLD-46054d4f0258c8df91c2e0f081af2ea87375b515.tar.xz
review ServiceBase for var
Diffstat (limited to 'OpenSim/Services/Base')
-rw-r--r--OpenSim/Services/Base/ServiceBase.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Services/Base/ServiceBase.cs b/OpenSim/Services/Base/ServiceBase.cs
index ef30cba..22f27e0 100644
--- a/OpenSim/Services/Base/ServiceBase.cs
+++ b/OpenSim/Services/Base/ServiceBase.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.IO;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using System.Reflection; 31using System.Reflection;
31using log4net; 32using log4net;
@@ -45,9 +46,11 @@ namespace OpenSim.Services.Base
45 46
46 public T LoadPlugin<T>(string dllName, Object[] args) where T:class 47 public T LoadPlugin<T>(string dllName, Object[] args) where T:class
47 { 48 {
48 string[] parts = dllName.Split(new char[] {':'}); 49 string pathRoot = Path.GetPathRoot(dllName);
50 string noRoot = dllName.Substring(pathRoot.Length);
51 string[] parts = noRoot.Split(new char[] { ':' });
49 52
50 dllName = parts[0]; 53 dllName = pathRoot + parts[0];
51 54
52 string className = String.Empty; 55 string className = String.Empty;
53 56