// // cocos2d::CCLabelTTF::initWithString from 0x10006e860 to 0x10006e940 (224 bytes) // // 2 xrefs: // > cocos2d::CCLabelTTF::init @ 0x10006e978 // > cocos2d::CCLabelTTF::initWithString_1 @ 0x10006e98c // // 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 // bool __fastcall cocos2d::CCLabelTTF::initWithString( cocos2d::CCLabelTTF *a1, const char *a2, const char *a3, float a4, const cocos2d::CCSize *a5, cocos2d::CCTextAlignment a6, cocos2d::CCVerticalTextAlignment a7) { _BOOL4 v14; // w20 cocos2d::CCShaderCache *v15; // x0 cocos2d::CCGLProgram *v16; // x0 std::string *v17; // x23 double v19; // [xsp+8h] [xbp-58h] BYREF v14 = cocos2d::CCSprite::init(a1); if ( v14 ) { v15 = cocos2d::CCShaderCache::sharedShaderCache(); v16 = cocos2d::CCShaderCache::programForKey(v15, "ShaderPositionTextureColor"); ((void (__fastcall *)(cocos2d::CCLabelTTF *, cocos2d::CCGLProgram *))a1->setShaderProgram)(a1, v16); sub_100022988((float *)&v19, a5->width, a5->height); sub_100022B14(&a1->m_tDimensions, &v19); a1->m_hAlignment = a6; a1->m_vAlignment = a7; v17 = (std::string *)operator new(0x18u); sub_100009900(v17, (char *)a3); a1->m_pFontName = v17; a1->m_fFontSize = a4; ((void (__fastcall *)(cocos2d::CCLabelTTF *, const char *))a1->setString)(a1, a2); } return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source