// // cocos2d::CCImage::initWithImageFile from 0xd7d710 to 0xd7d81c (268 bytes) // // 3 xrefs: // > cocos2d::CCTextureCache::addImage @ 0xda8144 // > cocos2d::CCTextureCache::reloadTexture @ 0xda8540 // > @ 0xc6a30 // // 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:08 +0000 // __int64 __fastcall cocos2d::CCImage::initWithImageFile(cocos2d::CCImage *a1, __int64 a2, int a3) { __int64 v5; // x0 cocos2d::CCFileUtils *v6; // x0 __int64 v7; // x0 char *v8; // x1 __int64 *v9; // x19 unsigned int v10; // w21 int v13[2]; // [xsp+58h] [xbp+58h] BYREF void *v14[2]; // [xsp+60h] [xbp+60h] BYREF void *v15; // [xsp+70h] [xbp+70h] *(_QWORD *)v13 = 0; v5 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard); v6 = (cocos2d::CCFileUtils *)(*(_QWORD *(__fastcall **)(void **__return_ptr, __int64, __int64, _QWORD))(*(_QWORD *)v5 + 48LL))( v14, v5, a2, 0); v7 = cocos2d::CCFileUtils::sharedFileUtils(v6); v8 = (char *)v14 + 1; if ( ((__int64)v14[0] & 1) != 0 ) v8 = (char *)v15; v9 = (__int64 *)(*(__int64 (__fastcall **)(__int64, char *, char *, int *))(*(_QWORD *)v7 + 32LL))(v7, v8, "rb", v13); if ( v9 ) { v10 = 0; if ( *(_QWORD *)v13 ) v10 = (unsigned __int8)cocos2d::CCImage::initWithImageData(a1, v9, v13[0], a3, 0, 0, 8); operator delete[](v9); } else { v10 = 0; } if ( ((__int64)v14[0] & 1) != 0 ) operator delete(v15); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source