//
// cocos2d::CCParticleSystem::setBlendAdditive from 0x1800690c0 to 0x180069130 (112 bytes)
//
// 15 xrefs:
// > ??> @ 0x1800fabe8
// > ??> @ 0x1800fb258
// > ??> @ 0x1800fb8c8
// > ??> @ 0x1800fbf38
// > ??> @ 0x1800fc5a8
// > ??> @ 0x1800fcc18
// > ??> @ 0x1800fd288
// > ??> @ 0x1800fd8f8
// > ??> @ 0x1800fdf68
// > ??> @ 0x1800fe5d8
// > ??> @ 0x1800fec48
// > ??> @ 0x1800ff490
// > ??> @ 0x1800fff30
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3c3c
//
// 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
//
void __fastcall cocos2d::CCParticleSystem::setBlendAdditive(cocos2d::CCParticleSystem *this, char a2)
{
cocos2d::CCCamera *m_pTexture; // rcx
if ( a2 )
{
this->m_tBlendFunc.src = 770;
this->m_tBlendFunc.dst = 1;
}
else
{
m_pTexture = (cocos2d::CCCamera *)this->m_pTexture;
if ( !m_pTexture || cocos2d::CCCamera::isDirty(m_pTexture) )
{
this->m_tBlendFunc.src = 1;
this->m_tBlendFunc.dst = 771;
}
else
{
this->m_tBlendFunc.src = 770;
this->m_tBlendFunc.dst = 771;
}
}
}