// // cocos2d::CCLabelBMFont::setFntFile from 0xd59f74 to 0xd5a044 (208 bytes) // // 2 xrefs: // > ReportQueuePopup::init @ 0xc4ff88 // > @ 0x95cc8 // // This function is hookable on this platform (idp: arm, 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 13:07:46 +0000 // __int64 __fastcall cocos2d::CCLabelBMFont::setFntFile(__int64 this, char *a2) { __int64 *v2; // x21 const char *v3; // x2 cocos2d::CCLabelBMFont *v4; // x20 const char *v6; // x1 cocos2d::CCObject *File; // x22 _DWORD *v8; // x0 cocos2d::CCTextureCache *v9; // x0 void (__fastcall *v10)(cocos2d::CCLabelBMFont *, __int64); // x19 cocos2d::CCTextureCache *v11; // x0 __int64 v12; // x2 const char *v13; // x1 __int64 v14; // x0 if ( a2 ) { v2 = (__int64 *)(this + 384); v3 = (const char *)(this + 385); if ( (*(_BYTE *)(this + 384) & 1) != 0 ) v3 = *(const char **)(this + 400); v4 = (cocos2d::CCLabelBMFont *)this; this = strcmp(a2, v3); if ( (_DWORD)this ) { File = cocos2d::FNTConfigLoadFile((cocos2d *)a2, v6); std::string::assign(v2, a2); if ( File ) cocos2d::CCObject::retain((__int64)File); v8 = *((_DWORD **)v4 + 56); if ( v8 ) cocos2d::CCObject::release(v8); v9 = *(cocos2d::CCTextureCache **)v4; *((_QWORD *)v4 + 56) = File; v10 = *((void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))v9 + 113); v11 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v9); v12 = *((_QWORD *)v4 + 56); v13 = (const char *)(v12 + 89); if ( (*(_BYTE *)(v12 + 88) & 1) != 0 ) v13 = *(const char **)(v12 + 104); v14 = cocos2d::CCTextureCache::addImage(v11, v13, 0); v10(v4, v14); return cocos2d::CCLabelBMFont::createFontChars(v4); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source