// // cocos2d::CCImage::initWithImageData from 0xd7d504 to 0xd7d63c (312 bytes) // // 8 xrefs: // > cocos2d::CCRenderTexture::newCCImage @ 0xd6b3ec // > sub_D6B8F8 @ 0xd6b96c // > cocos2d::CCParticleSystem::initWithDictionary @ 0xd72000 // > cocos2d::CCImage::initWithImageFileThreadSafe @ 0xd7d6f8 // > cocos2d::CCImage::initWithImageFile @ 0xd7d804 // > cocos2d::CCSprite::setTexture @ 0xd86aa8 // > cocos2d::VolatileTexture::reloadAllTextures @ 0xda6cc8 // > @ 0xaa788 // // 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::initWithImageData( cocos2d::CCImage *this, __int64 *a2, int a3, int a4, int a5, int a6, int a7) { int v8; // w0 if ( !a2 || a3 <= 0 ) return 0; switch ( a4 ) { case 1: return cocos2d::CCImage::_initWithPngData(this, a2, a3); case 0: return cocos2d::CCImage::_initWithJpgData(this, a2, a3); case 2: return cocos2d::CCImage::_initWithTiffData(this, a2, a3); } if ( a4 != 4 ) { if ( a3 <= 8 ) { if ( a3 <= 2 ) return 0; v8 = *(unsigned __int8 *)a2; LABEL_9: if ( v8 == 73 ) { if ( *((_BYTE *)a2 + 1) == 73 ) return cocos2d::CCImage::_initWithTiffData(this, a2, a3); } else { if ( v8 != 77 ) { if ( v8 != 255 || *((unsigned __int8 *)a2 + 1) != 216 ) return 0; return cocos2d::CCImage::_initWithJpgData(this, a2, a3); } if ( *((_BYTE *)a2 + 1) == 77 ) return cocos2d::CCImage::_initWithTiffData(this, a2, a3); } return 0; } v8 = *(unsigned __int8 *)a2; if ( v8 != 137 ) goto LABEL_9; if ( *((_BYTE *)a2 + 1) != 80 || *((_BYTE *)a2 + 2) != 78 || *((_BYTE *)a2 + 3) != 71 || *((_BYTE *)a2 + 4) != 13 || *((_BYTE *)a2 + 5) != 10 || *((_BYTE *)a2 + 6) != 26 || *((_BYTE *)a2 + 7) != 10 ) { return 0; } return cocos2d::CCImage::_initWithPngData(this, a2, a3); } return cocos2d::CCImage::_initWithRawData(this, a2, a3, a5, a6, a7, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source