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

Function callFunctionWithOutError

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

Source from the content-addressed store, hash-verified

8210}
8211exports.callFunction = callFunction;
8212function callFunctionWithOutError(value, ...args) {
8213 try {
8214 if (value == undefined)
8215 return ptr(0x0);
8216 for (let i = 1; i <= (arguments.length < 5 ? 5 : arguments.length) - 1; i++)
8217 arguments[i] = arguments[i] == undefined ? ptr(0x0) : ptr(String(arguments[i]));
8218 return new NativeFunction((0, checkP_1.checkPointer)(value, true), 'pointer', ['pointer', 'pointer', 'pointer', 'pointer'])(arguments[1], arguments[2], arguments[3], arguments[4]);
8219 }
8220 catch (e) {
8221 return ptr(0);
8222 }
8223}
8224const callFunctionRB = (mPtr, ...args) => callFunctionRI(mPtr, ...args) == 1;
8225exports.callFunctionRB = callFunctionRB;
8226const callFunctionRI = (mPtr, ...args) => callFunctionWithOutError(mPtr, ...args).toInt32();

Callers 5

getFileLenthFunction · 0.70
callFunctionRIFunction · 0.70
callFunctionRSFunction · 0.70
callFunctionRFFunction · 0.70
callFunctionRAFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected