// // cocos2d::CCNodeRGBA::setColor from 0x5bd5f8 to 0x5bd692 (154 bytes) // // 3 xrefs: // > cocos2d::CCAtlasNode::setColor @ 0x5bc910 // > `non-virtual thunk to'cocos2d::CCNodeRGBA::setColor @ 0x5bd6a8 // > cocos2d::CCSprite::setColor @ 0x5e793e // // 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 // void cocos2d::CCNodeRGBA::setColor(cocos2d::CCNodeRGBA *a1, const cocos2d::ccColor3B *a2) { GLubyte b; // r3 __int16 v4; // r1 _BOOL4 cascadeColorEnabled; // r3 cocos2d::CCNode *m_pParent; // r0 void *v7; // r0 void *v8; // r7 int v9; // r0 char v10; // r3 _DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF v11[0] = a1; v11[1] = a2; *(_WORD *)&a1->_realColor.r = *(_WORD *)&a2->r; b = a2->b; v4 = *(_WORD *)&a1->_realColor.r; a1->_realColor.b = b; a1->_displayedColor.b = b; cascadeColorEnabled = a1->_cascadeColorEnabled; *(_WORD *)&a1->_displayedColor.r = v4; if ( cascadeColorEnabled ) { m_pParent = a1->m_pParent; LOWORD(v11[0]) = -1; BYTE2(v11[0]) = -1; if ( m_pParent ) { v7 = _dynamic_cast( m_pParent, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); v8 = v7; if ( v7 ) { if ( (*(int (__fastcall **)(void *))(*(_DWORD *)v7 + 32))(v7) ) { v9 = (*(int (__fastcall **)(void *))(*(_DWORD *)v8 + 8))(v8); v10 = *(_BYTE *)(v9 + 2); LOWORD(v11[0]) = *(_WORD *)v9; BYTE2(v11[0]) = v10; } } } a1->updateDisplayedColor(a1, (const cocos2d::ccColor3B *)v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source