// // cocos2d::CCLayerColor::updateColor from 0x180051270 to 0x180051407 (407 bytes) // // 2 xrefs: // > @ 0x1800edcf0 // > @ 0x1801438a8 // // 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 __fastcall cocos2d::CCLayerColor::updateColor(cocos2d::CCLayerColor *this) { GLfloat v1; // xmm2_4 v1 = (float)this->_displayedColor.r / 255.0; this->m_pSquareColors[0].r = v1; this->m_pSquareColors[0].g = (float)this->_displayedColor.g / 255.0; this->m_pSquareColors[0].b = (float)this->_displayedColor.b / 255.0; this->m_pSquareColors[0].a = (float)this->_displayedOpacity / 255.0; this->m_pSquareColors[1].r = v1; this->m_pSquareColors[1].g = (float)this->_displayedColor.g / 255.0; this->m_pSquareColors[1].b = (float)this->_displayedColor.b / 255.0; this->m_pSquareColors[1].a = (float)this->_displayedOpacity / 255.0; this->m_pSquareColors[2].r = (float)this->_displayedColor.r / 255.0; this->m_pSquareColors[2].g = (float)this->_displayedColor.g / 255.0; this->m_pSquareColors[2].b = (float)this->_displayedColor.b / 255.0; this->m_pSquareColors[2].a = (float)this->_displayedOpacity / 255.0; this->m_pSquareColors[3].r = (float)this->_displayedColor.r / 255.0; this->m_pSquareColors[3].g = (float)this->_displayedColor.g / 255.0; this->m_pSquareColors[3].b = (float)this->_displayedColor.b / 255.0; this->m_pSquareColors[3].a = (float)this->_displayedOpacity / 255.0; }