//
// cocos2d::CCParticleSystem::setTexture from 0xafd564 to 0xafd5bc (88 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleSystem::setTexture @ 0xafd5c0
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0xb03a18
// > ??> @ 0xac830
// > ??> @ 0x1216d70
//
// 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; // x0
cocos2d::CCParticleSystem_vtbl *v5; // x1
m_pTexture = a1->m_pTexture;
if ( 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);
}
}