//
// cocos2d::CCParticleSystem::setTexture from 0x5dac02 to 0x5dac36 (52 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleSystem::setTexture @ 0x5dac3a
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x5de15e
//
// 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::setTexture(cocos2d::CCParticleSystem *a1, cocos2d::CCTexture2D *a2)
{
cocos2d::CCTexture2D *m_pTexture; // r0
cocos2d::CCParticleSystem_vtbl *v5; // r3
if ( a1->m_pTexture != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
m_pTexture = a1->m_pTexture;
if ( m_pTexture )
cocos2d::CCObject::release(m_pTexture);
v5 = a1->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_pTexture = a2;
v5->updateBlendFunc(a1);
}
}