// // cocos2d::CCNodeRGBA::updateDisplayedColor from 0x100275600 to 0x100275716 (278 bytes) // // 24 xrefs: // > cocos2d::CCSprite::updateDisplayedColor @ 0x10028ab49 // > cocos2d::extension::CCScale9Sprite::updateDisplayedColor @ 0x1003f604d // > sub_1003F6070 @ 0x1003f608a // > @ 0x1008b1e70 // > @ 0x1008b33a0 // > @ 0x1008b6638 // > @ 0x1008e10e8 // > @ 0x1008ef170 // > @ 0x1008ef640 // > @ 0x10090cc18 // > @ 0x100914e28 // > @ 0x10092b3d0 // > @ 0x10092b880 // > @ 0x10092bd68 // > @ 0x10092c250 // > @ 0x10092c750 // > @ 0x10092cc68 // > @ 0x10092d150 // > @ 0x1009657b8 // > @ 0x100965cb8 // > @ 0x10097ecd8 // > @ 0x100981970 // > @ 0x100981df8 // > @ 0x10098e518 // // 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::CCNodeRGBA::updateDisplayedColor(cocos2d::CCNodeRGBA *a1, const cocos2d::ccColor3B *a2) { cocos2d::CCArray *m_pChildren; // rax cocos2d::ccArray *data; // rax const void **arr; // r12 unsigned __int64 v5; // r13 void *v6; // rax a1->_displayedColor.r = (int)((double)(a1->_realColor.r * a2->r) / 255.0); a1->_displayedColor.g = (int)((double)(a1->_realColor.g * a2->g) / 255.0); a1->_displayedColor.b = (int)((double)(a1->_realColor.b * a2->b) / 255.0); if ( a1->_cascadeColorEnabled ) { m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = (const void **)data->arr; v5 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; v6 = __dynamic_cast( *arr, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v6 ) (*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_QWORD *)v6 + 80LL))(v6, &a1->_displayedColor); ++arr; } while ( (unsigned __int64)arr <= v5 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source