// // cocos2d::CCLabelTTF::setFontName from 0x18004e6b0 to 0x18004e791 (225 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801b1cd4 // // 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=1 void __fastcall cocos2d::CCLabelTTF::setFontName(cocos2d::CCLabelTTF *this, char *a2) { std::string *m_pFontName; // rbx std::string *v5; // rsi unsigned __int64 m_capacity; // rdx char *m_bigStorage; // rcx _QWORD *v8; // rax m_pFontName = this->m_pFontName; if ( sub_18004DCF0(m_pFontName, a2) ) { v5 = nullptr; if ( m_pFontName ) { m_capacity = m_pFontName->m_data.m_capacity; if ( m_capacity > 0xF ) { m_bigStorage = m_pFontName->m_data.m_bigStorage; if ( m_capacity + 1 >= 0x1000 ) { if ( (unsigned __int64)&m_bigStorage[-*((_QWORD *)m_bigStorage - 1) - 8] > 0x1F ) invalid_parameter_noinfo_noreturn(); m_bigStorage = *((char **)m_bigStorage - 1); } j_j_free_0(m_bigStorage); } m_pFontName->m_data.m_size = 0; m_pFontName->m_data.m_capacity = 15; m_pFontName->m_data.m_smallStorage._Elems[0] = 0; j_j_free_0(m_pFontName); } v8 = operator new(0x20u); if ( v8 ) v5 = (std::string *)sub_180005910(v8, a2); this->m_pFontName = v5; if ( this->m_string.m_data.m_size ) cocos2d::CCLabelTTF::updateTexture(this); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source