// // cocos2d::CCSprite::setDisplayFrame from 0x5e6660 to 0x5e66b4 (84 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 cocos2d::CCSprite::setDisplayFrame(cocos2d::CCSprite *a1, cocos2d::CCSpriteFrame *a2) { cocos2d::CCPoint *Offset; // r0 int v5; // r2 bool v6; // r3 cocos2d::CCTexture2D *Texture; // r1 void (__fastcall *setTextureRect_0)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *, bool, const cocos2d::CCSize *); // r6 if ( a2 ) { Offset = (cocos2d::CCPoint *)cocos2d::CCSpriteFrame::getOffset(a2); cocos2d::CCPoint::operator=(&a1->m_obUnflippedOffsetPositionFromCenter, &Offset->x, v5, v6); Texture = cocos2d::CCSpriteFrame::getTexture(a2); if ( Texture != a1->m_pobTexture ) a1->setTexture(a1, Texture); setTextureRect_0 = a1->setTextureRect_0; a1->m_bRectRotated = a2->m_bRotated; ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCRect *))setTextureRect_0)(a1, &a2->m_obRect); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source