// // cocos2d::CCParticleBatchNode::reorderChild from 0x5dd47c to 0x5dd566 (234 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::CCParticleBatchNode::reorderChild(cocos2d::CCParticleBatchNode *a1, cocos2d::CCNode *a2, int a3) { unsigned int v6; // r6 bool v7; // r3 unsigned int v8; // r3 float x; // r9 float v10; // r6 cocos2d::CCTextureAtlas *m_pTextureAtlas; // r5 unsigned int v12; // r0 unsigned int v13; // [sp+Ch] [bp-10h] BYREF unsigned int v14; // [sp+10h] [bp-Ch] BYREF cocos2d::CCArray::containsObject(a1->m_pChildren, (cocos2d::_ccArray *)a2, (cocos2d::CCObject *)a3); if ( a3 != a2->getZOrder(a2) ) { if ( cocos2d::CCArray::count(a1->m_pChildren) > 1 ) { v6 = 0; v14 = 0; v13 = 0; cocos2d::CCParticleBatchNode::getCurrentIndex(a1, &v14, &v13, a2, a3); if ( v14 != v13 ) { cocos2d::CCObject::retain(a2); cocos2d::CCArray::removeObjectAtIndex(a1->m_pChildren, (cocos2d::_ccArray *)v14, 1, v7); cocos2d::CCArray::insertObject(a1->m_pChildren, (cocos2d::_ccArray *)a2, (cocos2d::CCObject *)v13, v8); cocos2d::CCObject::release(a2); x = a2[1].m_obAnchorPointInPoints.x; cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(a1); while ( v6 < cocos2d::CCArray::count(a1->m_pChildren) ) { if ( a2 == cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v6) ) { v10 = a2[1].m_obAnchorPointInPoints.x; goto LABEL_10; } ++v6; } v10 = 0.0; LABEL_10: m_pTextureAtlas = a1->m_pTextureAtlas; v12 = ((int (__fastcall *)(cocos2d::CCNode *))a2->__vftable[1].setGrid)(a2); cocos2d::CCTextureAtlas::moveQuadsFromIndex(m_pTextureAtlas, LODWORD(x), v12, LODWORD(v10)); a2->__vftable[1].visit(a2); } } a2->_setZOrder(a2, a3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source