// // cocos2d::CCNodeRGBA::updateDisplayedOpacity from 0xacba00 to 0xacbad0 (208 bytes) // // 25 xrefs: // > cocos2d::extension::CCScale9Sprite::updateDisplayedOpacity @ 0xaa3428 // > `non-virtual thunk to'cocos2d::CCNodeRGBA::updateDisplayedOpacity @ 0xacbadc // > cocos2d::CCSprite::updateDisplayedOpacity @ 0xb16f58 // > @ 0x40c50 // > @ 0x1138d08 // > @ 0x1139218 // > @ 0x113f658 // > @ 0x1156548 // > @ 0x117fcf8 // > @ 0x11892a8 // > @ 0x11a2288 // > @ 0x11fff78 // > @ 0x1200838 // > @ 0x1201418 // > @ 0x1201c58 // > @ 0x120ed58 // > @ 0x120f228 // > @ 0x120f6f8 // > @ 0x120fba8 // > @ 0x1210078 // > @ 0x1210568 // > @ 0x1210a58 // > @ 0x1211318 // > @ 0x12117f8 // > @ 0x121b788 // // 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::updateDisplayedOpacity(cocos2d::CCNodeRGBA *a1, unsigned __int8 a2) { int realOpacity; // w2 _BOOL4 cascadeOpacityEnabled; // w0 cocos2d::CCArray *m_pChildren; // x0 cocos2d::ccArray *data; // x1 const void **arr; // x19 const void **v8; // x21 const void *v9; // x0 cocos2d::CCNodeRGBA *v10; // x20 void *v11; // x0 realOpacity = a1->_realOpacity; cascadeOpacityEnabled = a1->_cascadeOpacityEnabled; a1->_displayedOpacity = (unsigned int)((double)(realOpacity * a2) / 255.0); if ( cascadeOpacityEnabled ) { m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = (const void **)data->arr; v8 = &arr[data->num - 1]; if ( arr <= v8 ) { v9 = *arr; if ( *arr ) { v10 = a1; do { v11 = _dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v11 ) (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v11 + 104LL))(v11, v10->_displayedOpacity); if ( v8 < ++arr ) break; v9 = *arr; } while ( *arr ); } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source