// // cocos2d::CCNodeRGBA::setOpacity from 0x5bd590 to 0x5bd5e6 (86 bytes) // // 3 xrefs: // > cocos2d::CCAtlasNode::setOpacity @ 0x5bc934 // > `non-virtual thunk to'cocos2d::CCNodeRGBA::setOpacity @ 0x5bd5f4 // > cocos2d::CCSprite::setOpacity @ 0x5e78ce // // 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::setOpacity(cocos2d::CCNodeRGBA *a1, unsigned __int8 a2) { _BOOL4 cascadeOpacityEnabled; // r3 cocos2d::CCNode *m_pParent; // r0 void *v5; // r0 void *v6; // r5 int v7; // r1 cascadeOpacityEnabled = a1->_cascadeOpacityEnabled; a1->_realOpacity = a2; a1->_displayedOpacity = a2; if ( cascadeOpacityEnabled ) { m_pParent = a1->m_pParent; if ( m_pParent && (v5 = _dynamic_cast( m_pParent, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2), (v6 = v5) != nullptr) && (*(int (__fastcall **)(void *))(*(_DWORD *)v5 + 44))(v5) ) { v7 = (*(int (__fastcall **)(void *))(*(_DWORD *)v6 + 12))(v6); } else { v7 = 255; } a1->updateDisplayedOpacity(a1, v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source