//
// ParticlePreviewLayer::init from 0x532554 to 0x5325aa (86 bytes)
//
// 1 xrefs:
// > ParticlePreviewLayer::create @ 0x532622
//
// 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
//
bool ParticlePreviewLayer::init(ParticlePreviewLayer *a1, cocos2d::CCParticleSystemQuad *a2)
{
_BOOL4 v4; // r6
ParticlePreviewLayer_vtbl *v5; // r3
cocos2d::ccColor4B v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[1] = (cocos2d::ccColor4B)a2;
v7[0].r = 0;
v7[0].g = 0;
v7[0].b = 0;
v7[0].a = -1;
v4 = cocos2d::CCLayerColor::initWithColor(a1, v7, 120.0, 180.0);
if ( v4 )
{
v5 = a1->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_particleSystem = a2;
v5->addChild_0(a1, a2, 100);
}
return v4;
}