(mPtr)
| 8461 | var cancelAllNopedFunction = () => arr_nop_addr.forEach((addr) => Interceptor.revert(addr)); |
| 8462 | exports.cancelAllNopedFunction = cancelAllNopedFunction; |
| 8463 | const 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 | }; |
| 8480 | exports.detachAll = detachAll; |
| 8481 | function replaceFunction(mPtr, callBack, TYPENOP = true) { |
| 8482 | if (typeof mPtr == "number") |
nothing calls this directly
no test coverage detected