// // cocos2d::CCTexture2D::initWithImage from 0x100478620 to 0x10047867d (93 bytes) // // 4 xrefs: // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1005ed92c // > cocos2d::CCTextureCache::addImage @ 0x1005edfba // > cocos2d::CCTextureCache::addUIImage @ 0x1005eea18 // > cocos2d::CCTextureCache::reloadTexture @ 0x1005eec15 // // 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; // ebx unsigned int m_nHeight; // r14d cocos2d::CCConfiguration *v4; // rax unsigned int MaxTextureSize; // eax if ( !a2 ) return 0; m_nWidth = a2->m_nWidth; m_nHeight = a2->m_nHeight; v4 = cocos2d::CCConfiguration::sharedConfiguration(); MaxTextureSize = cocos2d::CCConfiguration::getMaxTextureSize(v4); 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