//
// cocos2d::CCLabelBMFont::setFntFile from 0x5cd478 to 0x5cd4de (102 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
//
void cocos2d::CCLabelBMFont::setFntFile(cocos2d::CCLabelBMFont *a1, const char *a2)
{
cocos2d::CCBMFontConfiguration *File; // r6
cocos2d::CCBMFontConfiguration *m_pConfiguration; // r0
cocos2d::CCLabelBMFont_vtbl *v6; // r3
void (__fastcall *setTexture)(cocos2d::CCSpriteBatchNode *__hidden, cocos2d::CCTexture2D *); // r5
cocos2d::CCTextureCache *v8; // r0
cocos2d::CCTexture2D *v9; // r0
if ( a2 && strcmp(a2, (const char *)a1->m_sFntFile.m_data.m_data) )
{
File = cocos2d::FNTConfigLoadFile(a2);
sub_7753D4((int)&a1->m_sFntFile, (char *)a2);
if ( File )
cocos2d::CCObject::retain(File);
m_pConfiguration = a1->m_pConfiguration;
if ( m_pConfiguration )
cocos2d::CCObject::release(m_pConfiguration);
v6 = a1->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_pConfiguration = File;
setTexture = v6->setTexture;
v8 = cocos2d::CCTextureCache::sharedTextureCache();
v9 = cocos2d::CCTextureCache::addImage(v8, (const char *)a1->m_pConfiguration->m_sAtlasName.m_data.m_data, 0);
setTexture(a1, v9);
cocos2d::CCLabelBMFont::createFontChars(a1);
}
}