// // cocos2d::CCTexture2D::initWithImage from 0x10012d7fc to 0x10012d86c (112 bytes) // // 4 xrefs: // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x100113c98 // > cocos2d::CCTextureCache::addImage @ 0x100114194 // > cocos2d::CCTextureCache::addUIImage @ 0x100114868 // > cocos2d::CCTexture2D::initWithString @ 0x10012dcdc // // 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 // bool __fastcall cocos2d::CCTexture2D::initWithImage(cocos2d::CCTexture2D *a1, cocos2d::CCImage *a2) { unsigned int m_nWidth; // w21 unsigned int m_nHeight; // w22 cocos2d::CCConfiguration *v6; // x0 unsigned int MaxTextureSize; // w0 if ( !a2 ) return 0; m_nWidth = a2->m_nWidth; m_nHeight = a2->m_nHeight; v6 = cocos2d::CCConfiguration::sharedConfiguration(); MaxTextureSize = cocos2d::CCConfiguration::getMaxTextureSize(v6); if ( MaxTextureSize < m_nWidth || MaxTextureSize < m_nHeight ) return 0; cocos2d::CCTexture2D::initPremultipliedATextureWithImage(a1, a2, m_nWidth, m_nHeight); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source