MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / send_function

Function send_function

lib/cli/module/hook-function.js:112–123  ·  view source on GitHub ↗
(method_handle, function_return_value, args_param)

Source from the content-addressed store, hash-verified

110}
111
112function send_function(method_handle, function_return_value, args_param) {
113 const method = new Il2Cpp.Method(new NativePointer(method_handle));
114 method.implementation = function (...arg) {
115 if (function_return_value) {
116 return parseFloat(function_return_value) == 'NaN' ? function_return_value : parseFloat(function_return_value);
117 }
118 for (let param in args_param) {
119 arg[args_param[param].index] = parseFloat(args_param[param].value) == 'NaN' ? args_param[param].value : parseFloat(args_param[param].value);
120 }
121 return method.invoke(...arg);
122 }
123}
124
125module.exports = {
126 hook_unity_function,

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.80

Tested by

no test coverage detected