// // ParticleGameObject::updateParticleAngle from 0x1001b2040 to 0x1001b214e (270 bytes) // // 10 xrefs: // > ParticleGameObject::applyParticleSettings @ 0x1001b1e00 // > ParticleGameObject::updateParticle @ 0x1001b2436 // > ParticleGameObject::updateParticle @ 0x1001b2474 // > ParticleGameObject::updateParticleScale @ 0x1001b24fd // > ParticleGameObject::setRotation @ 0x1001b2733 // > ParticleGameObject::setRotationX @ 0x1001b2773 // > ParticleGameObject::setRotationY @ 0x1001b27b3 // > ParticleGameObject::setScaleX @ 0x1001b27fe // > ParticleGameObject::setScaleY @ 0x1001b286e // > ParticleGameObject::setScale @ 0x1001b28de // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall ParticleGameObject::updateParticleAngle( ParticleGameObject *a1, float a2, cocos2d::CCParticleSystemQuad *a3) { float v3; // xmm1_4 ParticleGameObject_vtbl *v4; // rax __m128 m_fDefaultAngle_low; // xmm0 char v6; // [rsp+4h] [rbp-3Ch] BYREF char v7; // [rsp+Ch] [rbp-34h] BYREF float v8[2]; // [rsp+14h] [rbp-2Ch] BYREF float v9; // [rsp+1Ch] [rbp-24h] if ( a3 ) { v3 = a2; if ( a1->m_isParticleSpriteLocked && ((v4 = a1->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, v9 = a2, ((unsigned __int8 (__fastcall *)(ParticleGameObject *))v4->isFlipX)(a1)) || (v3 = v9, ((unsigned __int8 (__fastcall *)(ParticleGameObject *, float, double))a1->isFlipY)(a1, a2, *(double *)&a2))) ) { m_fDefaultAngle_low = (__m128)LODWORD(a3->m_fDefaultAngle); *(__float2 *)m_fDefaultAngle_low.f32 = __sincosf_stret(m_fDefaultAngle_low.f32[0] * 0.017453292); sub_10028CBE0(&v7, _mm_movehdup_ps(m_fDefaultAngle_low).f32[0], m_fDefaultAngle_low.f32[0]); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v6, (const cocos2d::CCPoint *)a1); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v7, (const cocos2d::CCPoint *)a1); sub_10028CD00(v8, &v6, &v7); m_fDefaultAngle_low.f32[0] = atan2f(v8[1], v8[0]); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a3->setAngle)( a3, m_fDefaultAngle_low.f32[0] * 57.29578); } else { ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a3->setAngle)(a3, a3->m_fDefaultAngle - v3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source