// // cocos2d::CCNodeRGBA::updateDisplayedColor from 0xacbcd8 to 0xacbde0 (264 bytes) // // 25 xrefs: // > cocos2d::extension::CCScale9Sprite::updateDisplayedColor @ 0xaa3468 // > `non-virtual thunk to'cocos2d::CCNodeRGBA::updateDisplayedColor @ 0xacbdec // > cocos2d::CCSprite::updateDisplayedColor @ 0xb16f2c // > @ 0x64560 // > @ 0x1138d38 // > @ 0x1139248 // > @ 0x113f688 // > @ 0x1156578 // > @ 0x117fd28 // > @ 0x11892d8 // > @ 0x11a22b8 // > @ 0x11fffa8 // > @ 0x1200868 // > @ 0x1201448 // > @ 0x1201c88 // > @ 0x120ed88 // > @ 0x120f258 // > @ 0x120f728 // > @ 0x120fbd8 // > @ 0x12100a8 // > @ 0x1210598 // > @ 0x1210a88 // > @ 0x1211348 // > @ 0x1211828 // > @ 0x121b7b8 // // 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::updateDisplayedColor(cocos2d::CCNodeRGBA *a1, const cocos2d::ccColor3B *a2) { int r; // w4 int g; // w0 int b; // w3 _BOOL4 cascadeColorEnabled; // w5 cocos2d::CCArray *m_pChildren; // x0 cocos2d::ccArray *data; // x1 const void **arr; // x19 const void **v10; // x21 const void *v11; // x0 cocos2d::ccColor3B *p_displayedColor; // x20 void *v13; // x0 r = a1->_realColor.r; g = a1->_realColor.g; b = a1->_realColor.b; cascadeColorEnabled = a1->_cascadeColorEnabled; a1->_displayedColor.r = (unsigned int)((double)(r * a2->r) / 255.0); a1->_displayedColor.g = (unsigned int)((double)(g * a2->g) / 255.0); a1->_displayedColor.b = (unsigned int)((double)(b * a2->b) / 255.0); if ( cascadeColorEnabled ) { m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = (const void **)data->arr; v10 = &arr[data->num - 1]; if ( arr <= v10 ) { v11 = *arr; if ( *arr ) { p_displayedColor = &a1->_displayedColor; do { v13 = _dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v13 ) (*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_QWORD *)v13 + 80LL))(v13, p_displayedColor); if ( v10 < ++arr ) break; v11 = *arr; } while ( *arr ); } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source