diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Server/Base/ServerUtils.cs | 2 | ||||
-rw-r--r-- | OpenSim/Services/Base/ServiceBase.cs | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index 8f1d56b..f6d26e4 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs | |||
@@ -41,7 +41,7 @@ using OpenSim.Framework.Servers.HttpServer; | |||
41 | using OpenSim.Framework.Servers; | 41 | using OpenSim.Framework.Servers; |
42 | 42 | ||
43 | 43 | ||
44 | [assembly:AddinRoot("Robust", "0.1")] | 44 | [assembly:AddinRoot("Robust", OpenSim.VersionInfo.VersionNumber)] |
45 | namespace OpenSim.Server.Base | 45 | namespace OpenSim.Server.Base |
46 | { | 46 | { |
47 | [TypeExtensionPoint(Path="/Robust/Connector", Name="RobustConnector")] | 47 | [TypeExtensionPoint(Path="/Robust/Connector", Name="RobustConnector")] |
diff --git a/OpenSim/Services/Base/ServiceBase.cs b/OpenSim/Services/Base/ServiceBase.cs index ef30cba..addbe94 100644 --- a/OpenSim/Services/Base/ServiceBase.cs +++ b/OpenSim/Services/Base/ServiceBase.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | ||
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using log4net; | 32 | using log4net; |
32 | using Nini.Config; | 33 | using Nini.Config; |
@@ -45,9 +46,15 @@ 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 | // The path:type separator : is unfortunate because it collides |
49 | 50 | // with Windows paths like C:\... | |
50 | dllName = parts[0]; | 51 | // When the path provided includes the drive, this fails. |
52 | // Hence the root/noroot thing going on here. | ||
53 | string pathRoot = Path.GetPathRoot(dllName); | ||
54 | string noRoot = dllName.Substring(pathRoot.Length); | ||
55 | string[] parts = noRoot.Split(new char[] {':'}); | ||
56 | |||
57 | dllName = pathRoot + parts[0]; | ||
51 | 58 | ||
52 | string className = String.Empty; | 59 | string className = String.Empty; |
53 | 60 | ||