Further simplify ScriptComms

0.7.4.1
Melanie 2012-03-26 03:20:40 +01:00
parent ac0f1ff0a6
commit c9c01d5226
1 changed files with 3 additions and 1 deletions

View File

@ -128,8 +128,10 @@ namespace OpenSim.Region.CoreModules.Scripting.ScriptModuleComms
m_scriptModule.PostScriptEvent(script, "link_message", args);
}
public void RegisterScriptInvocation(object target, MethodInfo mi)
public void RegisterScriptInvocation(object target, string meth)
{
MethodInfo mi = target.GetType()..GetMethod(meth,
BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
Type delegateType;
var typeArgs = mi.GetParameters()