// // cocos2d::CCLabelTTF::setFontName from 0x1003bdfa0 to 0x1003be0c5 (293 bytes) // // 0 xrefs: // // 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 // void __fastcall cocos2d::CCLabelTTF::setFontName(cocos2d::CCLabelTTF *a1, const char *a2) { double v2; // xmm0_8 const char *v3; // r14 std::string *m_pFontName; // r15 std::string *v5; // r15 size_t v6; // rax size_t v7; // r12 char *elems; // r13 size_t v9; // r14 unsigned int sizex2; // eax v3 = a2; if ( !std::string::compare((const std::string *)a1->m_pFontName, a2) ) return; m_pFontName = a1->m_pFontName; if ( m_pFontName ) { if ( (m_pFontName->m_data.m_short.sizex2 & 1) != 0 ) operator delete(m_pFontName->m_data.m_long.longStorage); operator delete(m_pFontName); } v5 = (std::string *)operator new(0x18u); v6 = strlen(a2); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v7 = v6; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; elems = (char *)operator new(v9); v5->m_data.m_long.longStorage = elems; v5->m_data.m_long.capacitym1 = v9 | 1; v5->m_data.m_long.size = v7; v3 = a2; goto LABEL_13; } v5->m_data.m_short.sizex2 = 2 * v6; elems = v5->m_data.m_short.shortStorage.__elems_; if ( v6 ) LABEL_13: memcpy(elems, v3, v7); elems[v7] = 0; a1->m_pFontName = v5; sizex2 = a1->m_string.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { if ( a1->m_string.m_data.m_long.size ) goto LABEL_16; } else if ( sizex2 >> 1 ) { LABEL_16: cocos2d::CCLabelTTF::updateTexture(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source