// // cocos2d::CCTextureCache::reloadTexture from 0x1005eeb70 to 0x1005eec62 (242 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall cocos2d::CCTextureCache::reloadTexture(cocos2d::CCTextureCache *a1, const char *a2) { cocos2d::CCFileUtils *v2; // rax bool v3; // r14 cocos2d::CCTexture2D *v4; // r14 cocos2d::CCImage *v5; // rbx const char *v6; // rsi const char *v7; // rsi unsigned __int8 v9; // [rsp+0h] [rbp-30h] BYREF _BYTE v10[7]; // [rsp+1h] [rbp-2Fh] BYREF __int64 v11; // [rsp+8h] [rbp-28h] void *__p; // [rsp+10h] [rbp-20h] v2 = cocos2d::CCFileUtils::sharedFileUtils(); v3 = 0; ((void (__fastcall *)(unsigned __int8 *, cocos2d::CCFileUtils *, const char *, _QWORD))v2->createCCArrayWithContentsOfFile)( &v9, v2, a2, 0); if ( (v9 & 1) != 0 ) { if ( !v11 ) goto LABEL_15; } else if ( !(v9 >> 1) ) { goto LABEL_15; } v4 = (cocos2d::CCTexture2D *)cocos2d::CCDictionary::objectForKey_1((__int64)a1->m_pTextures, (char *)&v9); if ( !v4 ) { if ( (v9 & 1) != 0 ) v7 = (const char *)__p; else v7 = v10; v3 = cocos2d::CCTextureCache::addImage(a1, v7, 0) != nullptr; if ( (v9 & 1) != 0 ) goto LABEL_16; return v3; } v5 = (cocos2d::CCImage *)operator new(0x50u); cocos2d::CCImage::CCImage((__int64)v5); if ( (v9 & 1) != 0 ) v6 = (const char *)__p; else v6 = v10; if ( cocos2d::CCImage::initWithImageFile(v5, v6, kFmtPng) ) { v3 = cocos2d::CCTexture2D::initWithImage(v4, v5); if ( (v9 & 1) == 0 ) return v3; goto LABEL_16; } v3 = 0; LABEL_15: if ( (v9 & 1) != 0 ) LABEL_16: operator delete(__p); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source