]> git.saurik.com Git - cycript.git/blobdiff - modules/com/saurik/substrate/MS.cy
Move x.type() to typeid(x) and implement variadic.
[cycript.git] / modules / com / saurik / substrate / MS.cy
index 2cd98b8eb6f9009125294193b358760dbad69303..446b906bf560c50861985d6d89e22c95e0ed177e 100644 (file)
@@ -61,7 +61,7 @@ exports.getImageByName = MSGetImageByName;
 exports.findSymbol = MSFindSymbol;
 
 exports.hookFunction = function(func, hook, old) {
-    var type = func.type;
+    var type = typeid(func);
 
     var pointer;
     if (old == null || typeof old === "undefined")