//
// cocos2d::VolatileTexture::addDataTexture from 0x5f56f4 to 0x5f5722 (46 bytes)
//
// 2 xrefs:
// > cocos2d::CCRenderTexture::listenToBackground @ 0x5d8af2
// > cocos2d::CCRenderTexture::listenToBackground @ 0x5d8b06
//
// 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,
cocos2d::VolatileTexture::ccCachedImageType a3,
float *a4)
{
cocos2d::VolatileTexture *VolotileTexture; // r0
if ( !cocos2d::VolatileTexture::isReloading )
{
VolotileTexture = cocos2d::VolatileTexture::findVolotileTexture((cocos2d::VolatileTexture *)result, a2);
VolotileTexture->m_eCashedImageType = kImageData;
VolotileTexture = (cocos2d::VolatileTexture *)((char *)VolotileTexture + 16);
LODWORD(VolotileTexture[-1].m_fFontSize) = a2;
VolotileTexture->m_eCashedImageType = a3;
return cocos2d::CCSize::operator=((cocos2d::CCSize *)VolotileTexture, a4);
}
return result;
}