//
// cocos2d::CCParticleSystem::setTexture from 0x1007cae50 to 0x1007caea3 (83 bytes)
//
// 5 xrefs:
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x100602fa2
// > cocos2d::CCParticleSystemQuad::setTexture @ 0x100603027
// > sub_100603050 @ 0x1006030c0
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x10060314a
// > ??> @ 0x1009969c0
//
// 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::setTexture(cocos2d::CCParticleSystem *a1, cocos2d::CCTexture2D *a2)
{
cocos2d::CCTexture2D *m_pTexture; // rdi
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);
a1->m_pTexture = a2;
((void (__fastcall *)(cocos2d::CCParticleSystem *))a1->updateBlendFunc)(a1);
}
}