// // cocos2d::CCTexture2D::initWithImage from 0xda3c90 to 0xda3d00 (112 bytes) // // 9 xrefs: // > cocos2d::CCTexture2D::initWithString @ 0xda3f34 // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0xda64fc // > cocos2d::VolatileTexture::reloadAllTextures @ 0xda6bc4 // > cocos2d::VolatileTexture::reloadAllTextures @ 0xda6cf0 // > cocos2d::CCTextureCache::addImage @ 0xda8168 // > cocos2d::CCTextureCache::reloadTexture @ 0xda8598 // > cocos2d::CCTextureCache::addUIImage @ 0xda8708 // > cocos2d::CCTextureCache::addUIImage @ 0xda8734 // > @ 0xf2c50 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:08:31 +0000 // __int64 __fastcall cocos2d::CCTexture2D::initWithImage(cocos2d::CCTexture2D *this, cocos2d::CCImage *a2) { unsigned int v2; // w20 unsigned int v4; // w21 cocos2d::CCConfiguration *v6; // x0 unsigned int MaxTextureSize; // w0 if ( a2 && (v2 = *((unsigned __int16 *)a2 + 29), v4 = *((unsigned __int16 *)a2 + 28), v6 = (cocos2d::CCConfiguration *)cocos2d::CCConfiguration::sharedConfiguration(this), MaxTextureSize = cocos2d::CCConfiguration::getMaxTextureSize(v6), v2 <= MaxTextureSize) && v4 <= MaxTextureSize ) { return cocos2d::CCTexture2D::initPremultipliedATextureWithImage(this, a2, v4, v2); } else { return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source