//
// cocos2d::CCLabelBMFont::setFntFile from 0x1006acd50 to 0x1006ace29 (217 bytes)
//
// 1 xrefs:
// > ReportQueuePopup::init @ 0x100968d04
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:22 +0000
//
void __fastcall cocos2d::CCLabelBMFont::setFntFile(std::string *a1, char *a2)
{
__int64 File; // r15
_DWORD *data; // rdi
__int64 v5; // rax
std::string::pointer v6; // rsi
std::string::pointer v7; // rsi
__int64 v8; // rax
if ( a2 )
{
if ( (*(_BYTE *)&a1[16].__r_.__value_.__s.0 & 1) != 0 )
{
if ( !strcmp(a2, a1[16].__r_.__value_.__l.__data_) )
return;
}
else if ( !strcmp(a2, a1[16].__r_.__value_.__s.__data_) )
{
return;
}
File = cocos2d::FNTConfigLoadFile(a2);
std::string::assign(a1 + 16, a2);
if ( File )
cocos2d::CCObject::retain(File);
data = a1[18].__r_.__value_.__l.__data_;
if ( data )
cocos2d::CCObject::release(data);
a1[18].__r_.__value_.__r.__words[2] = File;
v5 = cocos2d::CCTextureCache::sharedTextureCache(data);
v6 = a1[18].__r_.__value_.__l.__data_;
if ( (v6[88] & 1) != 0 )
v7 = *((std::string::pointer *)v6 + 13);
else
v7 = v6 + 89;
v8 = cocos2d::CCTextureCache::addImage(v5, v7, 0);
(*(void (__fastcall **)(std::string *, __int64))(a1->__r_.__value_.__r.__words[0] + 904))(a1, v8);
cocos2d::CCLabelBMFont::createFontChars((__int64)a1);
}
}