// // cocos2d::CCLayerColor::initWithColor from 0x180051f10 to 0x180052043 (307 bytes) // // 6 xrefs: // > @ 0x1800f3e88 // > @ 0x1800f4410 // > @ 0x1801414f8 // > @ 0x180141508 // > @ 0x18014cf68 // > @ 0x1801bc1e4 // // 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::CCLayerColor::initWithColor( cocos2d::CCLayerColor *this, const struct cocos2d::_ccColor4B *a2, float a3, float a4) { struct cocos2d::CCDirector *v6; // rax __int64 v7; // rbx __int64 v8; // rax char v9; // al char v10; // al char v11; // al char v12; // al __int64 v13; // rbx float *v14; // rax __int64 v15; // rbx cocos2d::CCShaderCache *v16; // rax struct cocos2d::CCGLProgram *v17; // rax float v19[4]; // [rsp+20h] [rbp-38h] BYREF v6 = cocos2d::CCDirector::sharedDirector(); if ( v6 ) { v7 = *(_QWORD *)this; cocos2d::CCDirector::getWinSize(v6, v19); (*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(v7 + 312))(this, v8); *((_WORD *)this + 180) = 0; *((_DWORD *)this + 134) = 770; *((_DWORD *)this + 135) = 771; v9 = *(_BYTE *)a2; *((_BYTE *)this + 421) = *(_BYTE *)a2; *((_BYTE *)this + 418) = v9; v10 = *((_BYTE *)a2 + 1); *((_BYTE *)this + 422) = v10; *((_BYTE *)this + 419) = v10; v11 = *((_BYTE *)a2 + 2); *((_BYTE *)this + 423) = v11; *((_BYTE *)this + 420) = v11; v12 = *((_BYTE *)a2 + 3); *((_BYTE *)this + 417) = v12; *((_BYTE *)this + 416) = v12; *((_QWORD *)this + 55) = 0; *((_QWORD *)this + 56) = 0; *((_QWORD *)this + 57) = 0; *((_QWORD *)this + 58) = 0; (*(void (__fastcall **)(cocos2d::CCLayerColor *))(*(_QWORD *)this + 1048LL))(this); v13 = *(_QWORD *)this; v14 = kmVec2Fill(v19, a3, a4); (*(void (__fastcall **)(cocos2d::CCLayerColor *, float *))(v13 + 312))(this, v14); v15 = *(_QWORD *)this; v16 = cocos2d::CCShaderCache::sharedShaderCache(); v17 = cocos2d::CCShaderCache::programForKey(v16, "ShaderPositionColor"); (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCGLProgram *))(v15 + 656))(this, v17); } return 1; }