// // CreateParticlePopup::toggleGravityMode from 0x9c4b30 to 0x9c4d14 (484 bytes) // // 4 xrefs: // > CreateParticlePopup::onPage @ 0x9c4f08 // > CreateParticlePopup::onEmitterMode @ 0x9c4f8c // > CreateParticlePopup::init @ 0x9c5cb8 // > @ 0xb14e0 // // 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 CreateParticlePopup::toggleGravityMode(CreateParticlePopup *a1, bool a2) { _BOOL4 v2; // w20 cocos2d::CCDictionary *PageInputNodes; // x23 intptr_t v5; // x19 cocos2d::CCDictionary *PageSliders; // x24 cocos2d::CCObject *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCObject *v9; // x0 intptr_t v10; // x1 cocos2d::CCObject *v11; // x0 unsigned int v12; // w22 intptr_t i; // x19 cocos2d::CCObject *v14; // x0 cocos2d::CCObject *v15; // x0 cocos2d::CCObject *v16; // x0 intptr_t v17; // x1 cocos2d::CCObject *v18; // x0 unsigned int v19; // w19 __int64 v20; // x0 bool v21; // cf unsigned int v22; // w1 unsigned int v23; // w19 __int64 v24; // x0 unsigned int v25; // w1 ParticlePreviewLayer *m_previewLayer; // x19 v2 = a2; PageInputNodes = CreateParticlePopup::getPageInputNodes(a1, 0); v5 = 8; PageSliders = CreateParticlePopup::getPageSliders(a1, 0); do { v7 = cocos2d::CCDictionary::objectForKey(PageInputNodes, v5); ((void (__fastcall *)(cocos2d::CCObject *, _BOOL4))v7->__vftable[4].~CCObject)(v7, v2); v8 = cocos2d::CCDictionary::objectForKey(PageInputNodes, v5); v8->__vftable[12].isEqual(v8, (const cocos2d::CCObject *)v2); v9 = cocos2d::CCDictionary::objectForKey(PageSliders, v5); ((void (__fastcall *)(cocos2d::CCObject *, _BOOL4))v9->__vftable[4].~CCObject)(v9, v2); v10 = v5++; v11 = cocos2d::CCDictionary::objectForKey(PageSliders, v10); v11->__vftable[12].isEqual(v11, (const cocos2d::CCObject *)v2); } while ( v5 != 18 ); v12 = !v2; for ( i = 50; i != 56; ++i ) { v14 = cocos2d::CCDictionary::objectForKey(PageInputNodes, i); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v14->__vftable[4].~CCObject)(v14, v12); v15 = cocos2d::CCDictionary::objectForKey(PageInputNodes, i); v15->__vftable[12].isEqual(v15, (const cocos2d::CCObject *)v12); v16 = cocos2d::CCDictionary::objectForKey(PageSliders, i); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v16->__vftable[4].~CCObject)(v16, v12); v17 = i; v18 = cocos2d::CCDictionary::objectForKey(PageSliders, v17); v18->__vftable[12].isEqual(v18, (const cocos2d::CCObject *)v12); } v19 = 0; while ( 1 ) { v21 = v19 >= (unsigned int)cocos2d::CCArray::count(a1->m_gravityObjects); v22 = v19++; if ( v21 ) break; v20 = cocos2d::CCArray::objectAtIndex(a1->m_gravityObjects, v22); (*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v20 + 328LL))(v20, v2); } v23 = 0; while ( 1 ) { v21 = v23 >= (unsigned int)cocos2d::CCArray::count(a1->m_radiusObjects); v25 = v23++; if ( v21 ) break; v24 = cocos2d::CCArray::objectAtIndex(a1->m_radiusObjects, v25); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 328LL))(v24, v12); } m_previewLayer = a1->m_previewLayer; m_previewLayer->m_gravityMode = a1->m_particle->getEmitterMode(a1->m_particle) == 0; }