Skip to content

Commit

Permalink
Broken until fixed is now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob committed Apr 17, 2019
1 parent c2ac9da commit ce70b83
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Slipe/Core/Source/SlipeShared/Resources/SharedResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,17 @@ public static SharedResource FromName(string name)
return new SharedResource(MtaShared.GetResourceFromName(name));
}

// Broken until fixed by Yuan
//public object Invoke(string functionName, params object[] parameters)
//{
// Console.WriteLine("NAME: {0}", this.Name);
// return Export.Invoke(this.Name, functionName, parameters);
//}
public object Invoke(string functionName, params object[] parameters)
{
/*
[[
do
local export = exports[this:getName()]
return export[functionName](export, unpack(parameters))
end
]]
*/
return Export.Invoke(this.Name, functionName, parameters);
}
}
}

0 comments on commit ce70b83

Please sign in to comment.