// // cocos2d::CCParticleBatchNode::removeChild from 0x1003c9490 to 0x1003c958d (253 bytes) // // 1 xrefs: // > @ 0x10092ed10 // // 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::CCParticleBatchNode::removeChild( cocos2d::CCParticleBatchNode *a1, cocos2d::CCNode *a2, bool a3) { cocos2d::CCTextureAtlas *m_pTextureAtlas; // r15 float b; // r12d unsigned int v6; // eax cocos2d::CCTextureAtlas *v7; // r15 unsigned int v8; // r12d unsigned int v9; // eax cocos2d::CCArray *m_pChildren; // rax cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // rbx unsigned __int64 v13; // r14 int v14; // r15d cocos2d::CCObject *v15; // rdi if ( a2 ) { sub_100720160(a1->m_pChildren, a2); cocos2d::CCNode::removeChild(a1, (bool)a2); m_pTextureAtlas = a1->m_pTextureAtlas; b = a2[1].m_sAdditionalTransform.b; v6 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->__vftable[1].setGrid)(a2); cocos2d::CCTextureAtlas::removeQuadsAtIndex(m_pTextureAtlas, LODWORD(b), v6); v7 = a1->m_pTextureAtlas; v8 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))v7->getTotalQuads)(v7); v9 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->__vftable[1].setGrid)(a2); cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(v7, v8, v9); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a2->__vftable[1].~CCNode)(a2, 0); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = data->arr; v13 = (unsigned __int64)&arr[data->num - 1]; v14 = 0; do { v15 = *arr; if ( !*arr ) break; v15[7].m_uOrderOfArrival = v14; v14 += ((__int64 (__fastcall *)(cocos2d::CCObject *))v15->__vftable[18].update)(v15); ++arr; } while ( (unsigned __int64)arr <= v13 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source