// // cocos2d::CCLabelTTF::createWithFontDefinition from 0x1003bd820 to 0x1003bd93d (285 bytes) // // 0 xrefs: // // 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 // cocos2d::CCLabelTTF *__fastcall cocos2d::CCLabelTTF::createWithFontDefinition( const char *a1, cocos2d::ccFontDefinition *a2) { cocos2d::CCLabelTTF *v2; // rbx cocos2d::CCShaderCache *v3; // rax cocos2d::CCGLProgram *v4; // rax v2 = (cocos2d::CCLabelTTF *)operator new(0x2B8u); cocos2d::CCSprite::CCSprite((__int64)v2, (__int64)a2); v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLabelTTF_vtbl *)off_10092AA28; v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10092AF10; v2->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10092AF90; v2->cocos2d::CCLabelProtocol::__vftable = (cocos2d::CCLabelProtocol_vtbl *)&off_10092AFC0; sub_10028CF90(&v2->m_tDimensions); v2->m_hAlignment = kCCTextAlignmentCenter; *(_WORD *)&v2->m_string.m_data.m_short.sizex2 = 0; v2->m_shadowEnabled = 0; *(_OWORD *)&v2->m_vAlignment = 0; sub_10028CF90(&v2->m_shadowOffset); v2->m_strokeEnabled = 0; *(_WORD *)&v2->m_textFillColor.r = -1; v2->m_textFillColor.b = -1; if ( cocos2d::CCSprite::init(v2) ) { v3 = cocos2d::CCShaderCache::sharedShaderCache(); v4 = cocos2d::CCShaderCache::programForKey(v3, "ShaderPositionTextureColor"); ((void (__fastcall *)(cocos2d::CCLabelTTF *, cocos2d::CCGLProgram *))v2->setShaderProgram)(v2, v4); cocos2d::CCLabelTTF::_updateWithTextDefinition(v2, a2, 0); ((void (__fastcall *)(cocos2d::CCLabelTTF *, const char *))v2->setString)(v2, a1); cocos2d::CCObject::autorelease(v2); } else { ((void (__fastcall *)(cocos2d::CCLabelTTF *))v2->~CCLabelTTF_0)(v2); return nullptr; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source