// // cocos2d::CCMenuItemImage::create from 0x18005c530 to 0x18005c63b (267 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801bcf64 // // 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 struct cocos2d::CCMenuItemImage *__fastcall cocos2d::CCMenuItemImage::create( const char *a1, const char *a2, const char *a3) { cocos2d::CCMenuItemSprite *v6; // rax cocos2d::CCObject *v7; // rbx unsigned int v8; // r12d unsigned int v9; // r15d unsigned int v10; // r14d cocos2d::CCNodeRGBA *(__fastcall *v12)(cocos2d::CCNodeRGBA *, char); // r8 v6 = (cocos2d::CCMenuItemSprite *)sub_1800E4AC0(0x190u); v7 = v6; if ( v6 ) { cocos2d::CCMenuItemSprite::CCMenuItemSprite(v6); *(_QWORD *)v7 = &cocos2d::CCMenuItemImage::`vftable'{for `cocos2d::CCNode'}; *((_QWORD *)v7 + 40) = &cocos2d::CCMenuItemImage::`vftable'{for `cocos2d::CCRGBAProtocol'}; } else { v7 = nullptr; } if ( v7 ) { v8 = 0; v9 = 0; v10 = 0; if ( a1 ) v8 = (unsigned int)cocos2d::CCSprite::create(a1); if ( a2 ) v9 = (unsigned int)cocos2d::CCSprite::create(a2); if ( a3 ) v10 = (unsigned int)cocos2d::CCSprite::create(a3); if ( (unsigned __int8)cocos2d::CCMenuItemSprite::initWithNormalSprite((_DWORD)v7, v8, v9, v10, 0, 0) ) { cocos2d::CCObject::autorelease(v7); return v7; } v12 = *(cocos2d::CCNodeRGBA *(__fastcall **)(cocos2d::CCNodeRGBA *, char))(*(_QWORD *)v7 + 8LL); if ( v12 == sub_18005BF40 ) sub_18005BF40(v7, 1); else v12(v7, 1); } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source