MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / callFunction

Function callFunction

Il2cppHook/_Ufunc.js:8198–8210  ·  view source on GitHub ↗
(value, ...args)

Source from the content-addressed store, hash-verified

8196const checkP_1 = require("./checkP");
8197const reader_1 = require("./reader");
8198function callFunction(value, ...args) {
8199 try {
8200 if (value == undefined)
8201 return ptr(0x0);
8202 for (let i = 1; i <= (arguments.length < 5 ? 5 : arguments.length) - 1; i++)
8203 arguments[i] = arguments[i] == undefined ? ptr(0x0) : ptr(String(arguments[i]));
8204 return new NativeFunction((0, checkP_1.checkPointer)(value, true), 'pointer', ['pointer', 'pointer', 'pointer', 'pointer'])(arguments[1], arguments[2], arguments[3], arguments[4]);
8205 }
8206 catch (e) {
8207 LOG(e, LogColor.C95);
8208 return ptr(0);
8209 }
8210}
8211exports.callFunction = callFunction;
8212function callFunctionWithOutError(value, ...args) {
8213 try {

Callers 7

showEventDataFunction · 0.70
HookDebugLogFunction · 0.70
_Ufunc.jsFile · 0.70
callFunctionRUSFunction · 0.70
callFunctionRCSFunction · 0.70
SeeTypeToStringFunction · 0.70
getJclassNameFunction · 0.70

Calls 1

LOGFunction · 0.70

Tested by

no test coverage detected