// // cocos2d::CCLabelTTF::initWithString from 0x180050310 to 0x180050401 (241 bytes) // // 6 xrefs: // > cocos2d::CCLabelTTF::create @ 0x18004fbdd // > cocos2d::CCLabelTTF::create @ 0x18004fcb4 // > cocos2d::CCLabelTTF::initWithString @ 0x1800502ca // > cocos2d::CCLabelTTF::initWithString @ 0x1800502fe // > @ 0x18014cf68 // > @ 0x1801bbf2c // // 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:45 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCLabelTTF::initWithString( cocos2d::CCSprite *a1, __int64 a2, char *a3, float a4, float *a5, int a6, int a7) { __int64 v10; // rbx cocos2d::CCShaderCache *v11; // rax struct cocos2d::CCGLProgram *v12; // rax float *v13; // rax _QWORD *v14; // rax float v16[4]; // [rsp+20h] [rbp-28h] BYREF if ( !cocos2d::CCSprite::init(a1) ) return 0; v10 = *(_QWORD *)a1; v11 = cocos2d::CCShaderCache::sharedShaderCache(); v12 = cocos2d::CCShaderCache::programForKey(v11, "ShaderPositionTextureColor"); (*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCGLProgram *))(v10 + 656))(a1, v12); v13 = kmVec2Fill(v16, *a5, a5[1]); cocos2d::CCSize::operator=((_DWORD *)a1 + 152, v13); *((_DWORD *)a1 + 154) = a6; *((_DWORD *)a1 + 155) = a7; v14 = (_QWORD *)sub_1800E4AC0(0x20u); *(_QWORD *)v16 = v14; if ( v14 ) v14 = sub_180005A10(v14, a3); *((_QWORD *)a1 + 78) = v14; *((float *)a1 + 158) = a4; (**((void (__fastcall ***)(__int64 *, __int64))a1 + 75))((__int64 *)a1 + 75, a2); return 1; }