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

Method callback

lib/component/agent/structs/method.js:135–138  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

133 set implementation(block) {
134 const startIndex = +!this.isStatic | +Il2Cpp.unityVersionIsBelow201830;
135 const callback = (...args) => {
136 const parameters = this.parameters.map((e, i) => utils_2.fromFridaValue(args[i + startIndex], e.type));
137 return utils_2.toFridaValue(block.call(this.isStatic ? this.class : new Il2Cpp.Object(args[0]), ...parameters));
138 };
139 try {
140 this.revert();
141 Interceptor.replace(this.virtualAddress, new NativeCallback(callback, this.returnType.fridaAlias, this.fridaSignature));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected