// // cocos2d::CCTextureCache::reloadTexture from 0xda8464 to 0xda85a8 (324 bytes) // // 1 xrefs: // > @ 0x103960 // // 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:33 +0000 // __int64 __fastcall cocos2d::CCTextureCache::reloadTexture(cocos2d::CCTextureCache *this, const char *a2) { __int64 v3; // x0 unsigned int v4; // w21 cocos2d::CCTexture2D *v6; // x23 cocos2d::CCImage *v7; // x22 char *v8; // x1 char *v9; // x1 void *v11[2]; // [xsp+50h] [xbp+50h] BYREF void *v12; // [xsp+60h] [xbp+60h] v3 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard); (*(void (__fastcall **)(void **__return_ptr, __int64, const char *, _QWORD))(*(_QWORD *)v3 + 48LL))(v11, v3, a2, 0); if ( ((__int64)v11[0] & 1) != 0 ) { v4 = 0; if ( !v11[1] ) { LABEL_3: operator delete(v12); return v4; } } else { v4 = 0; if ( !((int)LOBYTE(v11[0]) >> 1) ) return v4; } v6 = (cocos2d::CCTexture2D *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 7), (__int64)v11); if ( v6 ) { v7 = (cocos2d::CCImage *)operator new(0x50u); cocos2d::CCImage::CCImage(v7); v8 = (char *)v11 + 1; if ( ((__int64)v11[0] & 1) != 0 ) v8 = (char *)v12; v4 = 0; if ( (unsigned __int8)cocos2d::CCImage::initWithImageFile(v7, (__int64)v8, 1) ) v4 = (unsigned __int8)cocos2d::CCTexture2D::initWithImage(v6, v7); } else { v9 = (char *)v11 + 1; if ( ((__int64)v11[0] & 1) != 0 ) v9 = (char *)v12; v4 = cocos2d::CCTextureCache::addImage(this, v9, 0) != 0; } if ( ((__int64)v11[0] & 1) != 0 ) goto LABEL_3; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source