//
// cocos2d::VolatileTexture::addDataTexture from 0xb35880 to 0xb358ec (108 bytes)
//
// 3 xrefs:
// > cocos2d::CCRenderTexture::listenToBackground @ 0xafa43c
// > cocos2d::CCRenderTexture::listenToBackground @ 0xafa458
// > ??> @ 0x3bf40
//
// 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
//
cocos2d::CCSize *__fastcall cocos2d::VolatileTexture::addDataTexture(
cocos2d::CCSize *result,
cocos2d::CCTexture2D *a2,
int a3,
float *a4)
{
cocos2d::VolatileTexture **VolotileTexture; // x0
if ( !cocos2d::VolatileTexture::isReloading )
{
VolotileTexture = cocos2d::VolatileTexture::findVolotileTexture((cocos2d::VolatileTexture *)result, a2);
VolotileTexture[3] = (cocos2d::VolatileTexture *)a2;
*((_DWORD *)VolotileTexture + 10) = a3;
*((_DWORD *)VolotileTexture + 4) = 2;
return cocos2d::CCSize::operator=((cocos2d::CCSize *)VolotileTexture + 4, a4);
}
return result;
}