// // cocos2d::CCMenuItemLabel::setString from 0xaf5878 to 0xaf58f8 (128 bytes) // // 1 xrefs: // > @ 0x76b60 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCMenuItemLabel::setString(cocos2d::CCMenuItemLabel *a1, const char *a2) { const char *v2; // x2 int v3; // w3 int v4; // w4 char v5; // w5 cocos2d::CCObject *v6; // x6 const void *v8; // x0 void (__fastcall ***v10)(void *, const char *); // x0 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x20 __int64 v12; // x0 cocos2d::SEL_MenuHandler v13; // [xsp+20h] [xbp+20h] v8 = *(const void **)&a1[1].m_uID; if ( v8 ) { v10 = (void (__fastcall ***)(void *, const char *))_dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol, -2); (**v10)(v10, a2); setContentSize = a1->setContentSize; v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 312LL))(*(_QWORD *)&a1[1].m_uID); setContentSize(a1, (const cocos2d::CCSize *)v12); } else { __break(0x3E8u); cocos2d::CCMenuItemAtlasFont::initWithString( (cocos2d::CCMenuItemAtlasFont *)0x10102464C457FLL, a2, v2, v3, v4, v5, v6, v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source