// // cocos2d::CCProgressTimer::setSprite from 0x5d7250 to 0x5d72a0 (80 bytes) // // 1 xrefs: // > cocos2d::CCProgressTimer::initWithSprite @ 0x5d7e22 // // 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 cocos2d::CCProgressTimer::setSprite(cocos2d::CCProgressTimer *a1, cocos2d::CCSprite *a2) { cocos2d::CCSprite *m_pSprite; // r0 cocos2d::CCProgressTimer_vtbl *v5; // r3 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r6 const cocos2d::CCSize *v7; // r0 cocos2d::ccV2F_C4B_T2F *m_pVertexData; // r0 if ( a1->m_pSprite != a2 ) { if ( a2 ) cocos2d::CCObject::retain(a2); m_pSprite = a1->m_pSprite; if ( m_pSprite ) cocos2d::CCObject::release(m_pSprite); v5 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_pSprite = a2; setContentSize = v5->setContentSize; v7 = a2->getContentSize(a2); setContentSize(a1, v7); m_pVertexData = a1->m_pVertexData; if ( m_pVertexData ) { free(m_pVertexData); a1->m_pVertexData = nullptr; a1->m_nVertexDataCount = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source