// // cocos2d::FNTConfigLoadFile from 0x180047790 to 0x18004792f (415 bytes) // // 4 xrefs: // > cocos2d::CCLabelBMFont::initWithString @ 0x1800489da // > cocos2d::CCLabelBMFont::setFntFile @ 0x18004c5c3 // > @ 0x1801438a8 // > @ 0x1801b1890 // // 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 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCBMFontConfiguration *__fastcall cocos2d::FNTConfigLoadFile(cocos2d *this, const char *a2) { cocos2d::CCDictionary *v3; // rax size_t v4; // rbx size_t v5; // r8 struct cocos2d::CCBMFontConfiguration *v6; // rsi void *v7; // rcx void *v8; // rcx void *Block[2]; // [rsp+28h] [rbp-30h] BYREF __int128 v11; // [rsp+38h] [rbp-20h] if ( !qword_1801A83B8 ) { v3 = (cocos2d::CCDictionary *)operator new(0x48u); if ( v3 ) v3 = cocos2d::CCDictionary::CCDictionary(v3); qword_1801A83B8 = v3; } *(_OWORD *)Block = 0; v11 = 0; v4 = -1; v5 = -1; do ++v5; while ( *((_BYTE *)this + v5) ); sub_18000CE60(Block, this, v5); v6 = (struct cocos2d::CCBMFontConfiguration *)cocos2d::CCDictionary::objectForKey( (__int64)qword_1801A83B8, (unsigned __int8 *)Block); if ( *((_QWORD *)&v11 + 1) > 0xFu ) { v7 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v7); } if ( !v6 ) { v6 = cocos2d::CCBMFontConfiguration::create((const char *)this); if ( v6 ) { *(_OWORD *)Block = 0; v11 = 0; do ++v4; while ( *((_BYTE *)this + v4) ); sub_18000CE60(Block, this, v4); cocos2d::CCDictionary::setObject((__int64)qword_1801A83B8, v6, (unsigned __int8 *)Block); if ( *((_QWORD *)&v11 + 1) > 0xFu ) { v8 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v8); } } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source