//
// ParticlePreviewLayer::init from 0x1002d13f0 to 0x1002d1468 (120 bytes)
//
// 1 xrefs:
// > ParticlePreviewLayer::create @ 0x1002cda18
//
// 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 __fastcall ParticlePreviewLayer::init(ParticlePreviewLayer *a1, cocos2d::CCParticleSystemQuad *a2)
{
_BOOL4 v4; // w21
int v6; // [xsp+Ch] [xbp-24h] BYREF
v6 = -16777216;
v4 = cocos2d::CCLayerColor::initWithColor_1(a1, (const cocos2d::ccColor4B *)&v6, 120.0, 180.0);
if ( v4 )
{
a1->m_particleSystem = a2;
((void (__fastcall *)(ParticlePreviewLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, a2, 100);
}
return v4;
}