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

Method catchError

Il2cppHook/_Ufunc.js:684–704  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

682 catchError(method);
683 }
684 function catchError(method) {
685 LOGE((0, il2cppM_1.methodToString)(method));
686 if (Process.arch == "arm") {
687 let ins = method.virtualAddress.readPointer();
688 if (ins != null && ins.equals(0xE12FFF1E))
689 showErrorLog(ins);
690 }
691 else if (Process.arch == "arm64") {
692 let ins = method.virtualAddress.readPointer();
693 if (ins != null && ins.equals(0xC0035FD6))
694 showErrorLog(ins);
695 }
696 else {
697 Breaker.array_attach_failed.push(method);
698 printCtx(method.relativeVirtualAddress, 1, 1, LogColor.WHITE, 1);
699 }
700 function showErrorLog(ins, error = "\tMethod null implementation or attach by other intercepter") {
701 LOGE(`\t${method.virtualAddress} -> ${ins} -> ${ins.toMatchPattern()} `);
702 LOGE(error);
703 }
704 }
705 }
706 static needShowLOG = (method, enterType = "onEnter") => {
707 if (method instanceof Il2Cpp.Method) {

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
LOGEFunction · 0.70
printCtxFunction · 0.70

Tested by

no test coverage detected