// // cocos2d::extension::CCControlButton::setTitleTTFForState from 0x1003544e0 to 0x100354564 (132 bytes) // // 2 xrefs: // > @ 0x1009161d8 // > @ 0x100947920 // // 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 __fastcall cocos2d::extension::CCControlButton::setTitleTTFForState( cocos2d::extension::CCControlButton *a1, const char *a2, unsigned int a3) { cocos2d::CCString *v4; // rax cocos2d::CCString *v5; // r12 const char *CString; // rax cocos2d::CCLabelTTF *v7; // rax _WORD v8[8]; // [rsp+8h] [rbp-38h] BYREF void *__p; // [rsp+18h] [rbp-28h] v4 = (cocos2d::CCString *)((__int64 (__fastcall *)(cocos2d::extension::CCControlButton *, _QWORD))a1->getTitleForState)( a1, a3); if ( !v4 ) { v8[0] = 0; v4 = (cocos2d::CCString *)sub_1007AB360(v8); if ( (v8[0] & 1) != 0 ) { v5 = v4; operator delete(__p); v4 = v5; } } CString = cocos2d::CCString::getCString(v4); v7 = cocos2d::CCLabelTTF::create_2(CString, a2, 12.0); ((void (__fastcall *)(cocos2d::extension::CCControlButton *, cocos2d::CCLabelTTF *, _QWORD))a1->setTitleLabelForState)( a1, v7, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source