// // cocos2d::CCLayerGradient::initWithColor from 0x1800520b0 to 0x180052168 (184 bytes) // // 3 xrefs: // > @ 0x1800f4420 // > @ 0x18014cf68 // > @ 0x1801bc214 // // This function is hookable on this platform (idp: pc, 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 11:21:45 +0000 // char __fastcall cocos2d::CCLayerGradient::initWithColor( cocos2d::CCLayerGradient *this, const struct cocos2d::_ccColor4B *a2, const struct cocos2d::_ccColor4B *a3, const struct cocos2d::CCPoint *a4) { struct cocos2d::CCDirector *v6; // rax unsigned int v8; // [rsp+30h] [rbp+8h] BYREF int v9; // [rsp+38h] [rbp+10h] BYREF *((_BYTE *)this + 547) = *(_BYTE *)a3; *((_BYTE *)this + 548) = *((_BYTE *)a3 + 1); *((_BYTE *)this + 549) = *((_BYTE *)a3 + 2); *((_BYTE *)this + 551) = *((_BYTE *)a3 + 3); *((_BYTE *)this + 550) = *((_BYTE *)a2 + 3); cocos2d::CCSize::operator=((_DWORD *)this + 138, a4); *((_WORD *)this + 280) = 1; v8 = *(unsigned __int8 *)a2 | ((*((unsigned __int8 *)a2 + 1) | ((*((unsigned __int8 *)a2 + 2) | 0xFFFFFF00) << 8)) << 8); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6, &v9); (*(void (__fastcall **)(cocos2d::CCLayerGradient *, unsigned int *))(*(_QWORD *)this + 1040LL))(this, &v8); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source