//
// cocos2d::CCParticleSystem::setBlendAdditive from 0x18006b240 to 0x18006b2b0 (112 bytes)
//
// 15 xrefs:
// > ??> @ 0x180101128
// > ??> @ 0x1801017a8
// > ??> @ 0x180101e28
// > ??> @ 0x1801024a8
// > ??> @ 0x180102b28
// > ??> @ 0x1801031a8
// > ??> @ 0x180103828
// > ??> @ 0x180103ea8
// > ??> @ 0x180104528
// > ??> @ 0x180104ba8
// > ??> @ 0x180105228
// > ??> @ 0x1801058f8
// > ??> @ 0x180106580
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bdf84
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:54 +0000
//
void __fastcall cocos2d::CCParticleSystem::setBlendAdditive(cocos2d::CCParticleSystem *this, char a2)
{
cocos2d::CCCamera *v3; // rcx
if ( a2 )
{
*((_DWORD *)this + 170) = 770;
*((_DWORD *)this + 171) = 1;
}
else
{
v3 = *((cocos2d::CCCamera **)this + 84);
if ( !v3 || (unsigned __int8)cocos2d::CCCamera::isDirty(v3) )
{
*((_DWORD *)this + 170) = 1;
*((_DWORD *)this + 171) = 771;
}
else
{
*((_DWORD *)this + 170) = 770;
*((_DWORD *)this + 171) = 771;
}
}
}