// // CCPartAnimSprite::transformSprite from 0x2e733c to 0x2e7436 (250 bytes) // // 1 xrefs: // > CCPartAnimSprite::setDisplayFrame @ 0x2e74c0 // // 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 CCPartAnimSprite::transformSprite(CCPartAnimSprite *a1, SpriteDescription *a2) { CCSpritePart *v4; // r4 float x; // s15 float v6; // r1 CCSpritePart *v7; // r0 float y; // s15 CCSpritePart_vtbl *v9; // r3 float v10; // r1 void (__fastcall *setScaleY)(CCSpritePlus *__hidden, float); // r3 CCSpritePart *v12; // r0 _DWORD v13[2]; // [sp+0h] [bp-8h] BYREF v13[0] = a1; v13[1] = a2; v4 = (CCSpritePart *)cocos2d::CCArray::objectAtIndex(a1->m_spriteParts, a2->m_tag); cocos2d::CCNode::stopAllActions(v4); v4->setPosition(v4, &a2->m_position); x = a2->m_flipped.x; if ( x == 0.0 ) { v7 = v4; v6 = a2->m_scale.x; } else { v6 = a2->m_scale.x; v7 = v4; } if ( x != 0.0 ) LODWORD(v6) ^= 0x80000000; v4->setScaleX(v7, COERCE_FLOAT(LODWORD(v6))); y = a2->m_flipped.y; v9 = v4->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( y == 0.0 ) { setScaleY = v9->setScaleY; v12 = v4; v10 = a2->m_scale.y; } else { v10 = a2->m_scale.y; setScaleY = v9->setScaleY; v12 = v4; } if ( y != 0.0 ) LODWORD(v10) ^= 0x80000000; ((void (__fastcall *)(CCSpritePart *, _DWORD))setScaleY)(v12, LODWORD(v10)); ((void (__fastcall *)(CCSpritePart *, _DWORD))v4->setRotation)(v4, LODWORD(a2->m_rotation)); if ( a2->m_usesCustomTag ) { v4->setDisplayFrame(v4, a2->m_texture); sub_775C20(v13, &a2->m_texture->m_strFrameName); CCSpritePart::frameChanged((int)v4, (int)v13); sub_774008(v13); } if ( v4->getZOrder(v4) != a2->m_zValue ) ((void (__fastcall *)(CCPartAnimSprite *, CCSpritePart *))a1->reorderChild)(a1, v4); CCSpritePart::setBeingUsed(v4, 1); v4->setVisible(v4, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source