// // cocos2d::CCMenuItem::initWithTarget from 0x7dd78c to 0x7dd7ec (96 bytes) // // 7 xrefs: // > CCMenuItemToggler::init @ 0x3c6d3a // > cocos2d::CCMenuItem::create @ 0x7dd80e // > cocos2d::CCMenuItemLabel::initWithLabel @ 0x7dd8ae // > cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0x7ddae6 // > cocos2d::CCMenuItemToggle::createWithTarget @ 0x7ddeb4 // > cocos2d::CCMenuItemToggle::initWithTarget @ 0x7ddf12 // > cocos2d::CCMenuItemToggle::initWithItem @ 0x7ddfee // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:46 +0000 // int __fastcall cocos2d::CCMenuItem::initWithTarget(int a1, int a2, int a3, int a4) { void (__fastcall *v6)(int, float *); // r9 float v10[2]; // [sp+Ch] [bp+0h] BYREF v6 = *(void (__fastcall **)(int, float *))(*(_DWORD *)a1 + 148); cocos2d::CCPoint::CCPoint(v10, 0.5, 0.5); v6(a1, v10); *(_DWORD *)(a1 + 280) = a2; *(_DWORD *)(a1 + 284) = a3; *(_DWORD *)(a1 + 288) = a4; *(_BYTE *)(a1 + 278) = 0; *(_BYTE *)(a1 + 279) = 1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source