//
// GameObject::createAndAddParticle from 0x3550bc to 0x355158 (156 bytes)
//
// 41 xrefs:
// > GameObject::commonInteractiveSetup @ 0x357406
// > GameObject::customSetup @ 0x35dee0
// > GameObject::customSetup @ 0x35df34
// > GameObject::customSetup @ 0x35e002
// > GameObject::customSetup @ 0x35e032
// > GameObject::customSetup @ 0x35e0b2
// > GameObject::customSetup @ 0x35e134
// > GameObject::customSetup @ 0x35e1ba
// > GameObject::customSetup @ 0x35e266
// > GameObject::customSetup @ 0x35e378
// > GameObject::customSetup @ 0x35e428
// > GameObject::customSetup @ 0x35e4ce
// > GameObject::customSetup @ 0x35e572
// > GameObject::customSetup @ 0x35e614
// > GameObject::customSetup @ 0x35e6f8
// > GameObject::customSetup @ 0x35e79e
// > GameObject::customSetup @ 0x35eba0
// > GameObject::customSetup @ 0x35ebee
// > GameObject::customSetup @ 0x35ec3c
// > GameObject::customSetup @ 0x35ec88
// > GameObject::customSetup @ 0x35ecdc
// > GameObject::customSetup @ 0x35ed8a
// > GameObject::customSetup @ 0x35ee0e
// > GameObject::customSetup @ 0x35eec4
// > GameObject::customSetup @ 0x35ef2e
// > GameObject::customSetup @ 0x35ef98
// > GameObject::customSetup @ 0x35f04a
// > GameObject::customSetup @ 0x35f13a
// > GameObject::customSetup @ 0x35f206
// > GameObject::customSetup @ 0x35f2b6
// > GameObject::customSetup @ 0x35f388
// > GameObject::customSetup @ 0x35f47e
// > GameObject::customSetup @ 0x35f530
// > GameObject::customSetup @ 0x35f5e2
// > GameObject::customSetup @ 0x35f68c
// > GameObject::customSetup @ 0x35fa86
// > EnhancedGameObject::updateUserCoin @ 0x360958
// > EnhancedGameObject::customSetup @ 0x3611f0
// > EnhancedGameObject::customSetup @ 0x361a0e
// > EnhancedGameObject::customSetup @ 0x361ab0
// > EndPortalObject::init @ 0x3fe600
//
// 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
//
cocos2d::CCParticleSystemQuad *GameObject::createAndAddParticle(
GameObject *a1,
int a2,
const char *a3,
int a4,
cocos2d::tCCPositionType a5)
{
cocos2d::CCParticleSystemQuad *result; // r0
GameManager *v10; // r0
cocos2d::CCParticleSystemQuad *Particle; // r4
GameManager *v12; // r0
char v13; // [sp+8h] [bp-Ch] BYREF
result = (cocos2d::CCParticleSystemQuad *)GameManager::sharedState()->m_playLayer;
if ( result )
{
if ( a1->m_hasNoParticles )
{
return nullptr;
}
else
{
v10 = GameManager::sharedState();
Particle = GJBaseGameLayer::createParticle(v10->m_playLayer, a2, a3, a4, a5);
v12 = GameManager::sharedState();
GJBaseGameLayer::getParticleKey(
(GJBaseGameLayer *)&v13,
(int)v12->m_playLayer,
(const char *)a2,
(int)a3,
(cocos2d::tCCPositionType)a4);
sub_774794(&a1->m_particleString, &v13);
sub_774008(&v13);
a1->m_hasParticles = 1;
return Particle;
}
}
return result;
}