// // ParticleGameObject::updateParticle from 0x1001b23a0 to 0x1001b24c1 (289 bytes) // // 4 xrefs: // > LevelEditorLayer::pasteParticleState @ 0x1000f4156 // > LevelEditorLayer::pasteParticleState @ 0x1000f4231 // > CreateParticlePopup::onClose @ 0x1004730c7 // > CreateParticlePopup::onClose @ 0x100473133 // // 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 ParticleGameObject::updateParticle(ParticleGameObject *a1) { cocos2d::CCParticleSystemQuad *m_particle; // rdi float v3; // xmm0_4 bool m_animateOnTrigger; // al int v5; // eax float v6; // xmm0_4 float v7; // xmm0_4 float v8; // [rsp+0h] [rbp-20h] m_particle = a1->m_particle; if ( m_particle ) { cocos2d::CCParticleSystem::stopSystem(m_particle); GameToolbox::particleFromString(&a1->m_particleData, a1->m_particle, 0); v3 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getDuration)(a1->m_particle); m_animateOnTrigger = 1; if ( v3 < 0.0 ) m_animateOnTrigger = a1->m_animateOnTrigger; a1->m_hasCustomAnimation = m_animateOnTrigger; v5 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getPositionType)(a1->m_particle); a1->m_isParticleSpriteLocked = v5 != 2; a1->m_particleLocked = v5 != 2; if ( v5 != 2 ) { v6 = ((float (__fastcall *)(ParticleGameObject *))a1->getRotation)(a1); ParticleGameObject::updateParticleAngle(a1, v6, a1->m_particle); if ( a1->m_isParticleSpriteLocked ) { ((void (__fastcall *)(ParticleGameObject *))a1->getScaleX)(a1); if ( !a1->m_particle ) return; v8 = v6; v7 = ((float (__fastcall *)(ParticleGameObject *))a1->getRotation)(a1); ParticleGameObject::updateParticleAngle(a1, v7, a1->m_particle); cocos2d::CCParticleSystem::loadScaledDefaults(a1->m_particle, fabs(v8)); } } if ( a1->m_particle && (a1->m_particleUseObjectColor || a1->m_hasUniformObjectColor) ) GameObject::updateObjectEditorColor(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source