// // LevelEditorLayer::updateColor from 0x1000f0400 to 0x1000f04ff (255 bytes) // // 1 xrefs: // > @ 0x1008c0660 // // 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 LevelEditorLayer::updateColor( LevelEditorLayer *a1, cocos2d::ccColor3B *a2, float a3, int a4, bool a5, float a6, cocos2d::ccHSVValue *a7, int a8, bool a9, EffectGameObject *a10, int a11, int a12) { int v14; // edi unsigned __int64 v15; // r15 __int64 v16; // rdx PlayerObject *m_player1; // rdi __int16 v18; // r12 std::__vector_base::pointer begin; // rdi __int64 v20; // rdx __int64 v21; // rsi __int64 v22; // rcx __int64 v23; // r8 __int64 v24; // rcx __int64 v25; // rdx v14 = 0; if ( a4 > 0 ) v14 = a4; v15 = 1101; if ( v14 < 1101 ) v15 = (unsigned int)v14; if ( a10 ) { v16 = 2594; if ( a10->m_usesPlayerColor1 || (v16 = 2597, a10->m_usesPlayerColor2) ) { m_player1 = a1->m_player1; v18 = *(_WORD *)((char *)&m_player1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v16); a2->b = *((_BYTE *)&m_player1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v16 + 2); *(_WORD *)&a2->r = v18; } } GJBaseGameLayer::updateColor(a1, a2, a3, v15, a5, a6, a7, a8, a9, a10, a11, a12); if ( a1->m_playbackMode ) { begin = a1->m_blendingColors.__begin_; v20 = (unsigned int)v15 >> 6; v21 = 1LL << v15; v22 = *(_QWORD *)&begin[8 * v20]; if ( _bittest64(&v22, v15) == a5 ) { *(_QWORD *)&a1->m_blendingColors2.__begin_[8 * v20] &= ~v21; } else { v23 = v22 & ~v21; v24 = v21 | v22; if ( !a5 ) v24 = v23; v25 = (unsigned int)(8 * v20); *(_QWORD *)&begin[v25] = v24; *(_QWORD *)&a1->m_blendingColors2.__begin_[v25] |= v21; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source