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

Function onLeave

Il2cppHook/_Ufunc.js:13122–13131  ·  view source on GitHub ↗
(returnValue)

Source from the content-addressed store, hash-verified

13120 this.modulePath = target.readString(args[0]) ?? "";
13121 },
13122 onLeave(returnValue) {
13123 if (returnValue.isNull())
13124 return;
13125 for (const moduleName of moduleNames) {
13126 if (!this.modulePath.endsWith(moduleName))
13127 continue;
13128 setImmediate(() => interceptors.forEach(i => i.detach()));
13129 resolve(moduleName);
13130 }
13131 }
13132 }));
13133 });
13134}

Callers

nothing calls this directly

Calls 2

isNullMethod · 0.80
detachMethod · 0.80

Tested by

no test coverage detected