// // cocos2d::CCLabelBMFont::setFntFile from 0xae7678 to 0xae7734 (188 bytes) // // 1 xrefs: // > @ 0x6f210 // // 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 cocos2d::CCLabelBMFont::setFntFile(cocos2d::CCLabelBMFont *a1, const char *a2) { cocos2d::CCBMFontConfiguration *File; // x21 size_t v5; // x0 cocos2d::CCBMFontConfiguration *m_pConfiguration; // x0 cocos2d::CCLabelBMFont_vtbl *v7; // x0 void (__fastcall *setTexture)(cocos2d::CCSpriteBatchNode *__hidden, cocos2d::CCTexture2D *); // x20 cocos2d::CCTextureCache *v9; // x0 cocos2d::CCTexture2D *v10; // x0 if ( a2 && strcmp(a2, (const char *)a1->m_sFntFile.m_data.m_data) ) { File = cocos2d::FNTConfigLoadFile(a2); v5 = strlen(a2); sub_D1798C(&a1->m_sFntFile, a2, v5); if ( File ) cocos2d::CCObject::retain(File); m_pConfiguration = a1->m_pConfiguration; if ( m_pConfiguration ) cocos2d::CCObject::release(m_pConfiguration); v7 = a1->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_pConfiguration = File; setTexture = v7->setTexture; v9 = cocos2d::CCTextureCache::sharedTextureCache(); v10 = cocos2d::CCTextureCache::addImage(v9, (const char *)a1->m_pConfiguration->m_sAtlasName.m_data.m_data, 0); setTexture(a1, v10); cocos2d::CCLabelBMFont::createFontChars(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source