// // cocos2d::CCTexture2D::initWithImage from 0x10046cf80 to 0x10046cfdd (93 bytes) // // 4 xrefs: // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1006c09bc // > cocos2d::CCTextureCache::addImage @ 0x1006c104a // > cocos2d::CCTextureCache::addUIImage @ 0x1006c1aa8 // > cocos2d::CCTextureCache::reloadTexture @ 0x1006c1ca5 // // This function is hookable on this platform (idp: pc, 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 12:30:32 +0000 // char __fastcall cocos2d::CCTexture2D::initWithImage(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5) { unsigned int v5; // ebx unsigned int v6; // r14d __int64 v7; // rax unsigned int MaxTextureSize; // eax if ( !a2 ) return 0; v5 = *(unsigned __int16 *)(a2 + 56); v6 = *(unsigned __int16 *)(a2 + 58); v7 = cocos2d::CCConfiguration::sharedConfiguration(a1, a2, a3, a4, a5); MaxTextureSize = cocos2d::CCConfiguration::getMaxTextureSize(v7); if ( MaxTextureSize < v5 || MaxTextureSize < v6 ) return 0; cocos2d::CCTexture2D::initPremultipliedATextureWithImage(a1, a2, v5, v6); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source