| 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) => { |