// // cocos2d::FNTConfigLoadFile from 0xd59ddc to 0xd59f74 (408 bytes) // // 3 xrefs: // > cocos2d::CCLabelBMFont::setFntFile @ 0xd59fb8 // > cocos2d::CCLabelBMFont::initWithString @ 0xd5a090 // > @ 0x4a230 // // 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 // cocos2d::CCObject *__fastcall cocos2d::FNTConfigLoadFile(cocos2d *this, const char *a2) { cocos2d::CCDictionary *v3; // x22 size_t v4; // x0 size_t v5; // x19 char *v6; // x3 const char *v7; // x1 cocos2d::CCObject *v8; // x19 unsigned __int64 v10; // x0 size_t v11; // x0 __int64 v12; // x21 unsigned __int64 v13; // [xsp+50h] [xbp+50h] BYREF size_t v14; // [xsp+58h] [xbp+58h] void *v15; // [xsp+60h] [xbp+60h] v3 = (cocos2d::CCDictionary *)qword_1560278; if ( !qword_1560278 ) { v3 = (cocos2d::CCDictionary *)operator new(0x48u); cocos2d::CCDictionary::CCDictionary(v3); qword_1560278 = (__int64)v3; } v13 = 0; v14 = 0; v15 = nullptr; v4 = strlen((const char *)this); v5 = v4; if ( v4 > 0x16 ) { v10 = (v4 + 16) & 0xFFFFFFFFFFFFFFF0LL; v13 = v10 | 1; v6 = (char *)operator new(v10); v15 = v6; v14 = v5; } else { LOBYTE(v13) = 2 * v4; v6 = (char *)&v13 + 1; if ( !v4 ) { BYTE1(v13) = 0; v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey((__int64)v3, (__int64)&v13); if ( (v13 & 1) == 0 ) goto LABEL_6; goto LABEL_10; } } *((_BYTE *)memcpy(v6, this, v5) + v5) = 0; v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey((__int64)v3, (__int64)&v13); if ( (v13 & 1) == 0 ) { LABEL_6: if ( v8 ) return v8; goto LABEL_11; } LABEL_10: operator delete(v15); if ( v8 ) return v8; LABEL_11: v8 = cocos2d::CCBMFontConfiguration::create(this, v7); if ( v8 ) { v13 = 0; v14 = 0; v15 = nullptr; v11 = strlen((const char *)this); v12 = qword_1560278; std::string::__init((__int64 *)&v13, this, v11); cocos2d::CCDictionary::setObject(v12, v8, (__int64)&v13); if ( (v13 & 1) != 0 ) operator delete(v15); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source