// // cocos2d::CCMenuItemToggle::createWithTarget from 0x18005cb80 to 0x18005cc45 (197 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801bcff4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:21:49 +0000 // // Hidden C++ exception states: #wind=1 cocos2d::CCMenuItemToggle *__fastcall cocos2d::CCMenuItemToggle::createWithTarget( __int64 a1, __int64 a2, cocos2d::CCArray *a3) { cocos2d::CCMenuItemToggle *v6; // rax unsigned int v7; // ebx cocos2d::CCMenuItemToggle *v8; // rdi struct cocos2d::CCArray *v9; // rax struct cocos2d::CCObject *v10; // rax v6 = (cocos2d::CCMenuItemToggle *)sub_1800E4AC0(0x188u); v7 = 0; if ( v6 ) v8 = cocos2d::CCMenuItemToggle::CCMenuItemToggle(v6); else v8 = nullptr; cocos2d::CCMenuItem::initWithTarget(v8, a1, a2); v9 = cocos2d::CCArray::create(); *((_QWORD *)v8 + 48) = v9; cocos2d::CCObject::retain(v9); if ( (unsigned int)cocos2d::CCArray::count(a3) ) { do { v10 = cocos2d::CCArray::stringAtIndex(a3, v7); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v8 + 48), v10); ++v7; } while ( v7 < (unsigned int)cocos2d::CCArray::count(a3) ); } *((_DWORD *)v8 + 94) = -1; (*(void (__fastcall **)(cocos2d::CCMenuItemToggle *, _QWORD))(*(_QWORD *)v8 + 960LL))(v8, 0); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source