aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Base/ServerUtils.cs
diff options
context:
space:
mode:
authorMelanie Thielker2017-01-02 19:31:23 +0000
committerMelanie Thielker2017-01-02 19:31:23 +0000
commit65dfb62b74b99edb5c1c74d1f19a3b29f94ed8b5 (patch)
tree4e7b0bd4c8d7e3991b5615ebd7433cd1ce5cbd33 /OpenSim/Server/Base/ServerUtils.cs
parentAdd the HGRemoteAssetService. Allows to use any asset service with HG (diff)
parentCreate a generic way for passing constructor args to plugins (diff)
downloadopensim-SC-65dfb62b74b99edb5c1c74d1f19a3b29f94ed8b5.zip
opensim-SC-65dfb62b74b99edb5c1c74d1f19a3b29f94ed8b5.tar.gz
opensim-SC-65dfb62b74b99edb5c1c74d1f19a3b29f94ed8b5.tar.bz2
opensim-SC-65dfb62b74b99edb5c1c74d1f19a3b29f94ed8b5.tar.xz
Merge branch 'master' of opensimulator.org:/var/git/opensim
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Base/ServerUtils.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs
index 18a4266..57d0a8d 100644
--- a/OpenSim/Server/Base/ServerUtils.cs
+++ b/OpenSim/Server/Base/ServerUtils.cs
@@ -242,6 +242,18 @@ namespace OpenSim.Server.Base
242 className = parts[2]; 242 className = parts[2];
243 } 243 }
244 244
245 // Handle extra string arguments in a more generic way
246 if (dllName.Contains("@"))
247 {
248 string[] dllNameParts = dllName.Split(new char[] {'@'});
249 dllName = dllNameParts[dllNameParts.Length - 1];
250 List<Object> argList = new List<Object>(args);
251 for (int i = 0 ; i < dllNameParts.Length - 1 ; ++i)
252 argList.Add(dllNameParts[i]);
253
254 args = argList.ToArray();
255 }
256
245 return LoadPlugin<T>(dllName, className, args); 257 return LoadPlugin<T>(dllName, className, args);
246 } 258 }
247 259