// // cocos2d::CCTextFieldTTF::draw from 0x1001cb8f8 to 0x1001cb9b4 (188 bytes) // // 1 xrefs: // > @ 0x1007b9e70 // // 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::CCTextFieldTTF::draw(cocos2d::CCTextFieldTTF *a1) { cocos2d::CCTextFieldDelegate *m_pDelegate; // x0 std::string *m_pInputText; // x9 __int64 v4; // x0 char v5; // w8 __int16 v6; // [xsp+Ch] [xbp-14h] BYREF char v7; // [xsp+Eh] [xbp-12h] m_pDelegate = a1->m_pDelegate; if ( !m_pDelegate || (((__int64 (__fastcall *)(cocos2d::CCTextFieldDelegate *, cocos2d::CCTextFieldTTF *))m_pDelegate->onDraw)( m_pDelegate, a1) & 1) == 0 ) { m_pInputText = a1->m_pInputText; if ( (m_pInputText->m_data.m_short.shortStorage.__elems_[22] & 0x8000000000000000LL) != 0 ) { if ( m_pInputText->m_data.m_long.size ) goto LABEL_5; } else if ( m_pInputText->m_data.m_short.shortStorage.__elems_[22] ) { LABEL_5: cocos2d::CCSprite::draw(a1); return; } v4 = ((__int64 (__fastcall *)(cocos2d::CCTextFieldTTF *))a1->getColor)(a1); v5 = *(_BYTE *)(v4 + 2); v6 = *(_WORD *)v4; v7 = v5; ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, cocos2d::ccColor3B *))a1->setColor)(a1, &a1->m_ColorSpaceHolder); cocos2d::CCSprite::draw(a1); ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, __int16 *))a1->setColor)(a1, &v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source