// // BitmapFontCache::fontWithConfigFile from 0x14003b3c0 to 0x14003b611 (593 bytes) // // 2 xrefs: // > MultilineBitmapFont::initWithFont @ 0x14006c04b // > @ 0x1406c3de0 // // 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 FontObject *BitmapFontCache::fontWithConfigFile(BitmapFontCache *a1, const char *a2, float a3) { double v5; // xmm2_8 cocos2d::CCString *v6; // rax const char *CString; // rax const char *v8; // rdi size_t v9; // rbx size_t v10; // r8 __int64 v11; // rsi void *v12; // rcx FontObject *v13; // rbx void *v14; // rcx FontObject *v16; // rsi void *v17; // rcx void *Block[2]; // [rsp+28h] [rbp-50h] BYREF __int64 v19; // [rsp+38h] [rbp-40h] unsigned __int64 v20; // [rsp+40h] [rbp-38h] v5 = a3; v6 = cocos2d::CCString::createWithFormat("%s%f", a2, v5); CString = cocos2d::CCString::getCString(v6); v8 = CString; *(_OWORD *)Block = 0; v19 = 0; v20 = 0; v9 = -1; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(Block, CString, v10); v11 = cocos2d::CCDictionary::objectForKey(a1->m_cache, Block); if ( v20 > 0xF ) { v12 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } if ( v11 ) { *(_OWORD *)Block = 0; v19 = 0; v20 = 0; do ++v9; while ( v8[v9] ); sub_14003A930(Block, v8, v9); v13 = (FontObject *)cocos2d::CCDictionary::objectForKey(a1->m_cache, Block); if ( v20 > 0xF ) { v14 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } return v13; } else { v16 = (FontObject *)operator new(0x4E8u); memset(v16, 0, sizeof(FontObject)); cocos2d::CCObject::CCObject(v16); v16->__vftable = (FontObject_vtbl *)&FontObject::`vftable'; FontObject::parseConfigFile(v16, a2, *(float *)&v5); cocos2d::CCObject::autorelease(v16); *(_OWORD *)Block = 0; v19 = 0; v20 = 0; do ++v9; while ( v8[v9] ); sub_14003A930(Block, v8, v9); cocos2d::CCDictionary::setObject(a1->m_cache, v16, Block); if ( v20 > 0xF ) { v17 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v17); } return v16; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source