//
// cocos2d::CCParticleSystem::setBlendAdditive from 0xafd6d4 to 0xafd754 (128 bytes)
//
// 14 xrefs:
// > ??> @ 0x98370
// > ??> @ 0x12122b0
// > ??> @ 0x1212960
// > ??> @ 0x1213010
// > ??> @ 0x12136c0
// > ??> @ 0x1213d70
// > ??> @ 0x1214420
// > ??> @ 0x1214ad0
// > ??> @ 0x1215180
// > ??> @ 0x1215830
// > ??> @ 0x1215ee0
// > ??> @ 0x1216590
// > ??> @ 0x1216c80
// > ??> @ 0x1217750
//
// 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 cocos2d::CCParticleSystem::setBlendAdditive(cocos2d::CCParticleSystem *a1, bool a2)
{
cocos2d::CCTexture2D *m_pTexture; // x0
if ( a2 )
{
a1->m_tBlendFunc.src = 770;
a1->m_tBlendFunc.dst = 1;
}
else
{
m_pTexture = a1->m_pTexture;
if ( !m_pTexture || cocos2d::CCTexture2D::hasPremultipliedAlpha(m_pTexture) )
{
a1->m_tBlendFunc.src = 1;
a1->m_tBlendFunc.dst = 771;
}
else
{
a1->m_tBlendFunc.src = 770;
a1->m_tBlendFunc.dst = 771;
}
}
}