// // cocos2d::CCLabelTTF::init from 0x18004e390 to 0x18004e461 (209 bytes) // // 4 xrefs: // > @ 0x1800ec920 // > @ 0x1801067d0 // > @ 0x1801438a8 // > @ 0x1801b1c74 // // 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 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCLabelTTF::init(cocos2d::CCLabelTTF *this) { cocos2d::CCLabelTTF_vtbl *v2; // rbx cocos2d::CCShaderCache *v3; // rax struct cocos2d::CCGLProgram *v4; // rax float *v5; // rax std::string *v6; // rbx _QWORD *v7; // rax float v9; // [rsp+38h] [rbp+10h] BYREF _QWORD *v10; // [rsp+40h] [rbp+18h] if ( !cocos2d::CCSprite::init(this) ) return 0; v2 = this->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v3 = cocos2d::CCShaderCache::sharedShaderCache(); v4 = cocos2d::CCShaderCache::programForKey(v3, "ShaderPositionTextureColor"); ((void (__fastcall *)(cocos2d::CCLabelTTF *, struct cocos2d::CCGLProgram *))v2->setShaderProgram)(this, v4); v5 = kmVec2Fill(&v9, *(float *)&dword_1801A83C0, *(float *)&dword_1801A83C4); cocos2d::CCSize::operator=(&this->m_tDimensions, v5); v6 = nullptr; *(_QWORD *)&this->m_hAlignment = 0; v7 = operator new(0x20u); v10 = v7; if ( v7 ) v6 = (std::string *)sub_180005910(v7, "Helvetica"); this->m_pFontName = v6; this->m_fFontSize = 12.0; ((void (__fastcall *)(cocos2d::CCLabelProtocol *, const CHAR *))this->setString)( &this->cocos2d::CCLabelProtocol, Buf2); return 1; }