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

Function detachAll

Il2cppHook/_Ufunc.js:8463–8479  ·  view source on GitHub ↗
(mPtr)

Source from the content-addressed store, hash-verified

8461var cancelAllNopedFunction = () => arr_nop_addr.forEach((addr) => Interceptor.revert(addr));
8462exports.cancelAllNopedFunction = cancelAllNopedFunction;
8463const detachAll = (mPtr) => {
8464 let map_attach_listener = (0, globle_1.GET_MAP)(enum_1.MapKAY.map_attach_listener);
8465 if (typeof mPtr == "number")
8466 mPtr = ptr(mPtr);
8467 if (mPtr == undefined) {
8468 map_attach_listener.clear();
8469 Interceptor.detachAll();
8470 }
8471 else {
8472 let key = String(checkPointer(mPtr));
8473 let listener = map_attach_listener.get(key);
8474 if (listener != undefined) {
8475 listener.detach();
8476 map_attach_listener.delete(key);
8477 }
8478 }
8479};
8480exports.detachAll = detachAll;
8481function replaceFunction(mPtr, callBack, TYPENOP = true) {
8482 if (typeof mPtr == "number")

Callers

nothing calls this directly

Calls 3

detachMethod · 0.80
checkPointerFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected