// // cocos2d::FNTConfigLoadFile from 0x180048ca0 to 0x180048e48 (424 bytes) // // 4 xrefs: // > cocos2d::CCLabelBMFont::initWithString @ 0x180049ff6 // > cocos2d::CCLabelBMFont::setFntFile @ 0x18004e18e // > @ 0x18014cf68 // > @ 0x1801bbac4 // // 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 11:21:41 +0000 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCBMFontConfiguration *__fastcall cocos2d::FNTConfigLoadFile(cocos2d *this, const char *a2) { cocos2d::CCDictionary *v3; // rax size_t v4; // rax cocos2d::CCObject *v5; // rbx void *v6; // rax size_t v7; // rax void *v8; // rcx void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int128 v11; // [rsp+48h] [rbp-20h] if ( !qword_1801B23D8 ) { v3 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u); if ( v3 ) v3 = cocos2d::CCDictionary::CCDictionary(v3); qword_1801B23D8 = v3; } *(_OWORD *)Block = 0; v11 = 0; v4 = strlen((const char *)this); sub_18000CEF0(Block, this, v4); v5 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey((__int64)qword_1801B23D8, (__int64)Block); if ( *((_QWORD *)&v11 + 1) > 0xFu ) { v6 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v6); } if ( !v5 ) { v5 = cocos2d::CCBMFontConfiguration::create((const char *)this); if ( v5 ) { *(_OWORD *)Block = 0; v11 = 0; v7 = strlen((const char *)this); sub_18000CEF0(Block, this, v7); cocos2d::CCDictionary::setObject((__int64)qword_1801B23D8, v5, (__int64)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 ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v8); } } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source