// // cocos2d::CCLayerGradient::initWithColor from 0x180050290 to 0x18005034d (189 bytes) // // 3 xrefs: // > @ 0x1800ee260 // > @ 0x1801438a8 // > @ 0x1801b1f80 // // 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 // char __fastcall cocos2d::CCLayerGradient::initWithColor( cocos2d::CCLayerGradient *this, const struct cocos2d::_ccColor4B *a2, const struct cocos2d::_ccColor4B *a3, struct cocos2d::CCPoint *a4) { cocos2d::CCDirector *v6; // rax __int16 v8; // [rsp+30h] [rbp+8h] BYREF GLubyte b; // [rsp+32h] [rbp+Ah] char v10; // [rsp+33h] [rbp+Bh] this->m_endColor.r = a3->r; this->m_endColor.g = a3->g; this->m_endColor.b = a3->b; this->m_cEndOpacity = a3->a; this->m_cStartOpacity = a2->a; cocos2d::CCSize::operator=(&this->m_AlongVector, a4); *(_WORD *)&this->m_bCompressedInterpolation = 1; v8 = *(_WORD *)&a2->r; b = a2->b; v10 = -1; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); ((void (__fastcall *)(cocos2d::CCLayerGradient *, __int16 *))this->initWithColor_0)(this, &v8); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source