// // cocos2d::FNTConfigLoadFile from 0xae5b0c to 0xae5ca8 (412 bytes) // // 3 xrefs: // > cocos2d::CCLabelBMFont::setFntFile @ 0xae76ac // > cocos2d::CCLabelBMFont::initWithString @ 0xae8408 // > @ 0x31f80 // // 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 // cocos2d::CCBMFontConfiguration *cocos2d::FNTConfigLoadFile(const char *a1) { cocos2d::CCDictionary *v2; // x20 cocos2d::CCBMFontConfiguration *v3; // x20 char *v4; // x0 unsigned int *v6; // x1 int v7; // w2 __int64 v8; // x24 char *v9; // x0 unsigned int *v10; // x1 int v11; // w2 const char *v12; // [xsp+60h] [xbp+60h] BYREF v2 = (cocos2d::CCDictionary *)qword_12452D8; if ( !qword_12452D8 ) { v2 = (cocos2d::CCDictionary *)operator new(0x48u); cocos2d::CCDictionary::CCDictionary(v2); qword_12452D8 = (__int64)v2; } sub_D153B8((int)&v12, (char *)a1); v3 = (cocos2d::CCBMFontConfiguration *)cocos2d::CCDictionary::objectForKey((__int64)v2, &v12); v4 = (char *)(v12 - 24); if ( v12 - 24 == (const char *)&qword_124B6B0 ) goto LABEL_4; if ( &pthread_create ) { v6 = (unsigned int *)(v12 - 8); do v7 = __ldaxr(v6); while ( __stlxr(v7 - 1, v6) ); } else { v7 = *((_DWORD *)v12 - 2); *((_DWORD *)v12 - 2) = v7 - 1; } if ( v7 > 0 ) { LABEL_4: if ( v3 ) return v3; } else { operator delete(v4); if ( v3 ) return v3; } v3 = cocos2d::CCBMFontConfiguration::create(a1); if ( v3 ) { v8 = qword_12452D8; sub_D153B8((int)&v12, (char *)a1); cocos2d::CCDictionary::setObject(v8, v3, &v12); v9 = (char *)(v12 - 24); if ( v12 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v12 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v12 - 2); *((_DWORD *)v12 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v9); } } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source