// // cocos2d::CCImage::_initWithRawData from 0x10048a0a0 to 0x10048a117 (119 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::CCImage::_initWithRawData( cocos2d::CCImage *a1, void *a2, int a3, int a4, int a5, int a6, bool a7) { bool v7; // bl int v8; // r8d size_t v9; // r14 size_t v10; // rax unsigned __int8 *v11; // rax v7 = a4 != 0 && a5 != 0; if ( v7 ) { a1->m_nBitsPerComponent = a6; a1->m_nHeight = a5; a1->m_nWidth = a4; a1->m_bHasAlpha = 1; v8 = a4 * a5; v9 = 4 * v8; v10 = -1; if ( v8 >= 0 ) v10 = 4 * v8; v11 = (unsigned __int8 *)operator new[](v10); a1->m_pData = v11; memcpy(v11, a2, v9); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source