// // cocos2d::CCSprite::setTexture from 0x7f10a0 to 0x7f1150 (176 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::CCSprite::setTexture @ 0x7f115c // // 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:04 +0000 // cocos2d::CCTextureCache *__fastcall cocos2d::CCSprite::setTexture( cocos2d::CCTextureCache *this, cocos2d::CCTexture2D *a2) { cocos2d::CCTextureCache *v2; // r5 cocos2d::CCTexture2D *v3; // r4 int v4; // r0 cocos2d::CCTextureCache *v5; // r0 cocos2d::CCImage *v6; // r6 cocos2d::CCTextureCache *v7; // r0 cocos2d::CCTextureCache *v8; // r0 _DWORD *v9; // r0 int v10; // r3 v2 = this; v3 = a2; if ( *((_DWORD *)this + 73) ) { (*(void (__fastcall **)(cocos2d::CCTexture2D *))(*(_DWORD *)a2 + 52))(a2); v4 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 73) + 448))(*((_DWORD *)v2 + 73)); this = (cocos2d::CCTextureCache *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 52))(v4); } else if ( !a2 ) { v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(this); this = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::textureForKey(v5, "cc_2x2_white_image"); v3 = this; if ( !this ) { v6 = (cocos2d::CCImage *)operator new(0x48u); cocos2d::CCImage::CCImage(v6); v7 = (cocos2d::CCTextureCache *)cocos2d::CCImage::initWithImageData(v6, dword_D1FEE8, 16, 4, 2, 2, 8); v8 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v7); v3 = (cocos2d::CCTexture2D *)cocos2d::CCTextureCache::addUIImage(v8, v6, "cc_2x2_white_image"); this = (cocos2d::CCTextureCache *)cocos2d::CCObject::release(v6); } } if ( !*((_DWORD *)v2 + 73) && *((cocos2d::CCTexture2D **)v2 + 83) != v3 ) { if ( v3 ) cocos2d::CCObject::retain((int)v3); v9 = *((_DWORD **)v2 + 83); if ( v9 ) cocos2d::CCObject::release(v9); v10 = *(_DWORD *)v2; *((_DWORD *)v2 + 83) = v3; return (cocos2d::CCTextureCache *)(*(int (__fastcall **)(cocos2d::CCTextureCache *))(v10 + 608))(v2); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source