// // cocos2d::CCImage::initWithImageFile from 0x10002b088 to 0x10002b180 (248 bytes) // // 1 xrefs: // > cocos2d::CCTextureCache::addImage @ 0x100114174 // // 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::CCImage::initWithImageFile( cocos2d::CCImage *a1, const char *a2, cocos2d::CCImage::EImageFormat a3) { cocos2d::CCFileUtils *v6; // x22 cocos2d::CCFileUtils *v7; // x0 void **v8; // x1 void *v9; // x21 bool v10; // zf bool result; // w0 bool v12; // w19 void *__p[2]; // [xsp+0h] [xbp-50h] BYREF char v14; // [xsp+17h] [xbp-39h] __int64 v15; // [xsp+18h] [xbp-38h] BYREF v15 = 0; v6 = cocos2d::CCFileUtils::sharedFileUtils(); v7 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(void **__return_ptr, cocos2d::CCFileUtils *, const char *, _QWORD))v7->createCCArrayWithContentsOfFile)( __p, v7, a2, 0); if ( v14 >= 0 ) v8 = __p; else v8 = (void **)__p[0]; v9 = (void *)((__int64 (__fastcall *)(cocos2d::CCFileUtils *, void **, const char *, __int64 *))v6->addSearchResolutionsOrder)( v6, v8, "rb", &v15); if ( v14 < 0 ) operator delete(__p[0]); if ( v9 ) v10 = v15 == 0; else v10 = 1; if ( v10 ) { v12 = 0; result = 0; if ( !v9 ) return result; } else { v12 = cocos2d::CCImage::initWithImageData(a1, v9, v15, a3, 0, 0, 8, 0); } operator delete[](v9); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source