// // cocos2d::CCNodeRGBA::updateDisplayedOpacity from 0x5bd4c0 to 0x5bd536 (118 bytes) // // 3 xrefs: // > cocos2d::extension::CCScale9Sprite::updateDisplayedOpacity @ 0x5a6d16 // > `non-virtual thunk to'cocos2d::CCNodeRGBA::updateDisplayedOpacity @ 0x5bd54c // > cocos2d::CCSprite::updateDisplayedOpacity @ 0x5e7974 // // 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) { cocos2d::CCArray *m_pChildren; // r3 cocos2d::ccArray *data; // r2 const void **arr; // r4 const void **v6; // r5 const void *v7; // r0 const void *v8; // t1 void *v9; // r0 a1->_displayedOpacity = (unsigned int)((double)(a2 * a1->_realOpacity) / 255.0); if ( a1->_cascadeOpacityEnabled ) { m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = (const void **)data->arr; v6 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v6 ) { v8 = *arr++; v7 = v8; if ( !v8 ) break; v9 = _dynamic_cast( v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v9 ) (*(void (__fastcall **)(void *, _DWORD))(*(_DWORD *)v9 + 52))(v9, a1->_displayedOpacity); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source