// // cocos2d::CCTexture2D::initWithImage from 0x7ffb10 to 0x7ffb44 (52 bytes) // // 8 xrefs: // > cocos2d::CCTexture2D::initWithString @ 0x7ffce6 // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x8010dc // > cocos2d::VolatileTexture::reloadAllTextures @ 0x8014be // > cocos2d::VolatileTexture::reloadAllTextures @ 0x8015bc // > cocos2d::CCTextureCache::addImage @ 0x8022e2 // > cocos2d::CCTextureCache::reloadTexture @ 0x80247e // > cocos2d::CCTextureCache::addUIImage @ 0x802564 // > cocos2d::CCTextureCache::addUIImage @ 0x8025d2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:19 +0000 // int __fastcall cocos2d::CCTexture2D::initWithImage(cocos2d::CCTexture2D *this, cocos2d::CCImage *a2) { unsigned int v4; // r6 unsigned int v5; // r5 cocos2d::CCConfiguration *v6; // r0 unsigned int MaxTextureSize; // r0 if ( a2 && (v4 = *((unsigned __int16 *)a2 + 26), v5 = *((unsigned __int16 *)a2 + 27), v6 = (cocos2d::CCConfiguration *)cocos2d::CCConfiguration::sharedConfiguration(this), MaxTextureSize = cocos2d::CCConfiguration::getMaxTextureSize(v6), v4 <= MaxTextureSize) && v5 <= MaxTextureSize ) { return cocos2d::CCTexture2D::initPremultipliedATextureWithImage(this, a2, v4, v5); } else { return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source