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

Method innerImage

Il2cppHook/_Ufunc.js:553–568  ·  view source on GitHub ↗
(imgOrClsPtr)

Source from the content-addressed store, hash-verified

551 }
552 }
553 function innerImage(imgOrClsPtr) {
554 let lastSize = Breaker.map_attachedMethodInfos.size;
555 if (imgOrClsPtr.isNull())
556 throw new Error("can't attach nullptr");
557 if (base_1.HookerBase._list_images_pointers.map(item => Number(item)).includes(Number(imgOrClsPtr))) {
558 let imageHandle = imgOrClsPtr;
559 new Il2Cpp.Image(imageHandle).classes
560 .flatMap(cls => cls.methods)
561 .forEach(Breaker.attachMethod);
562 }
563 else {
564 let classHandle = imgOrClsPtr;
565 new Il2Cpp.Class(classHandle).methods.forEach(Breaker.attachMethod);
566 }
567 LOGO(`${getLine(40, "-")}\n Attached ${Breaker.map_attachedMethodInfos.size - lastSize} methods / All ${Breaker.map_attachedMethodInfos.size} methods\n${getLine(85, "-")}`);
568 }
569 function checkSpecialClass(type) {
570 if (type == "CommonClass") {
571 base_1.HookerBase._list_images.forEach((image) => {

Callers

nothing calls this directly

Calls 4

isNullMethod · 0.80
LOGOFunction · 0.70
getLineFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected