//
// cocos2d::CCParticleSystem::setBlendAdditive from 0x100196180 to 0x1001961d4 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x1007a8720
// > ??> @ 0x1007cf6c0
//
// 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 *a1, bool a2)
{
cocos2d::ccBlendFunc v3; // d0
cocos2d::CCTexture2D *m_pTexture; // x0
if ( a2 )
{
v3 = (cocos2d::ccBlendFunc)0x100000302LL;
}
else
{
m_pTexture = a1->m_pTexture;
if ( m_pTexture && !cocos2d::CCTexture2D::hasPremultipliedAlpha(m_pTexture) )
v3 = (cocos2d::ccBlendFunc)0x30300000302LL;
else
v3 = (cocos2d::ccBlendFunc)0x30300000001LL;
}
a1->m_tBlendFunc = v3;
}