// // cocos2d::CCTextureCache::addUIImage from 0x8024a4 to 0x8025e4 (320 bytes) // // 3 xrefs: // > sub_7E10F8 @ 0x7e113c // > cocos2d::CCParticleSystem::initWithDictionary @ 0x7e54d0 // > cocos2d::CCSprite::setTexture @ 0x7f110c // // 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:21 +0000 // cocos2d::CCTexture2D *__fastcall cocos2d::CCTextureCache::addUIImage( cocos2d::CCTextureCache *this, cocos2d::CCImage *a2, char *a3) { char *v5; // r10 int v6; // r0 int v7; // r0 int v8; // r1 char *v9; // r2 int v10; // r11 size_t v11; // r0 cocos2d::CCTexture2D *v12; // r5 cocos2d::CCImage *v13; // r2 int v14; // r10 char *v15; // r9 size_t v16; // r0 int v18; // [sp+4h] [bp+0h] BYREF int v19; // [sp+8h] [bp+4h] char *v20; // [sp+Ch] [bp+8h] int v21; // [sp+10h] [bp+Ch] BYREF int v22; // [sp+14h] [bp+10h] char *v23; // [sp+18h] [bp+14h] v18 = 0; v19 = 0; v5 = a3; v20 = nullptr; if ( a3 ) { v6 = cocos2d::CCFileUtils::sharedFileUtils(this); (*(void (__fastcall **)(int *, int, char *, _DWORD))(*(_DWORD *)v6 + 24))(&v21, v6, v5, 0); LOWORD(v18) = 0; std::string::reserve(&v18, 0); v7 = v21; v8 = v22; v9 = v23; v21 = 0; v22 = 0; v23 = nullptr; v18 = v7; v19 = v8; v20 = v9; std::string::~string((int)&v21); v21 = 0; v22 = 0; if ( (v18 & 1) == 0 ) v5 = (char *)&v18 + 1; v23 = nullptr; if ( (v18 & 1) != 0 ) v5 = v20; v10 = *((_DWORD *)this + 13); v11 = strlen(v5); std::string::__init(&v21, v5, v11); v12 = (cocos2d::CCTexture2D *)cocos2d::CCDictionary::objectForKey(v10, (int)&v21); std::string::~string((int)&v21); if ( !v12 ) { v12 = (cocos2d::CCTexture2D *)operator new(0x60u); cocos2d::CCTexture2D::CCTexture2D(v12); cocos2d::CCTexture2D::initWithImage(v12, a2); v14 = *((_DWORD *)this + 13); if ( (v18 & 1) != 0 ) v15 = v20; else v15 = (char *)&v18 + 1; v21 = 0; v22 = 0; v23 = nullptr; v16 = strlen(v15); std::string::__init(&v21, v15, v16); cocos2d::CCDictionary::setObject(v14, v12, (int)&v21); std::string::~string((int)&v21); cocos2d::CCObject::autorelease(v12); } } else { v12 = (cocos2d::CCTexture2D *)operator new(0x60u); cocos2d::CCTexture2D::CCTexture2D(v12); cocos2d::CCTexture2D::initWithImage(v12, a2); } cocos2d::VolatileTexture::addCCImage(v12, a2, v13); std::string::~string((int)&v18); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source