diff options
Diffstat (limited to 'OpenSim/Services/Base')
-rw-r--r-- | OpenSim/Services/Base/Properties/AssemblyInfo.cs | 2 | ||||
-rw-r--r-- | OpenSim/Services/Base/ServiceBase.cs | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Services/Base/Properties/AssemblyInfo.cs b/OpenSim/Services/Base/Properties/AssemblyInfo.cs index 959670c..a3fb11b 100644 --- a/OpenSim/Services/Base/Properties/AssemblyInfo.cs +++ b/OpenSim/Services/Base/Properties/AssemblyInfo.cs | |||
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices; | |||
29 | // Build Number | 29 | // Build Number |
30 | // Revision | 30 | // Revision |
31 | // | 31 | // |
32 | [assembly: AssemblyVersion("0.8.0.*")] | 32 | [assembly: AssemblyVersion("0.8.2.*")] |
33 | 33 | ||
diff --git a/OpenSim/Services/Base/ServiceBase.cs b/OpenSim/Services/Base/ServiceBase.cs index 22f27e0..09dcbef 100644 --- a/OpenSim/Services/Base/ServiceBase.cs +++ b/OpenSim/Services/Base/ServiceBase.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using log4net; | 33 | using log4net; |
33 | using Nini.Config; | 34 | using Nini.Config; |
@@ -46,9 +47,19 @@ namespace OpenSim.Services.Base | |||
46 | 47 | ||
47 | public T LoadPlugin<T>(string dllName, Object[] args) where T:class | 48 | public T LoadPlugin<T>(string dllName, Object[] args) where T:class |
48 | { | 49 | { |
50 | <<<<<<< HEAD | ||
51 | // The path:type separator : is unfortunate because it collides | ||
52 | // with Windows paths like C:\... | ||
53 | // When the path provided includes the drive, this fails. | ||
54 | // Hence the root/noroot thing going on here. | ||
55 | string pathRoot = Path.GetPathRoot(dllName); | ||
56 | string noRoot = dllName.Substring(pathRoot.Length); | ||
57 | string[] parts = noRoot.Split(new char[] {':'}); | ||
58 | ======= | ||
49 | string pathRoot = Path.GetPathRoot(dllName); | 59 | string pathRoot = Path.GetPathRoot(dllName); |
50 | string noRoot = dllName.Substring(pathRoot.Length); | 60 | string noRoot = dllName.Substring(pathRoot.Length); |
51 | string[] parts = noRoot.Split(new char[] { ':' }); | 61 | string[] parts = noRoot.Split(new char[] { ':' }); |
62 | >>>>>>> avn/ubitvar | ||
52 | 63 | ||
53 | dllName = pathRoot + parts[0]; | 64 | dllName = pathRoot + parts[0]; |
54 | 65 | ||
@@ -82,7 +93,7 @@ namespace OpenSim.Services.Base | |||
82 | continue; | 93 | continue; |
83 | 94 | ||
84 | Type typeInterface = | 95 | Type typeInterface = |
85 | pluginType.GetInterface(interfaceName, true); | 96 | pluginType.GetInterface(interfaceName); |
86 | if (typeInterface != null) | 97 | if (typeInterface != null) |
87 | { | 98 | { |
88 | T plug = (T)Activator.CreateInstance(pluginType, | 99 | T plug = (T)Activator.CreateInstance(pluginType, |