// // LevelEditorLayer::updateColor from 0x100361868 to 0x10036195c (244 bytes) // // 1 xrefs: // > @ 0x1007f42c0 // // 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) { _BOOL4 v12; // w19 int v14; // w10 unsigned __int64 v15; // x21 __int64 v16; // x10 char *v17; // x10 __int16 v18; // w11 std::__vector_base::pointer begin; // x10 unsigned __int64 v20; // x8 __int64 v21; // x9 __int64 v22; // x11 __int64 v23; // x12 __int64 v24; // x11 std::__vector_base::pointer v25; // x10 __int64 v26; // x9 v12 = a5; v14 = a4 & ~(a4 >> 31); if ( v14 >= 1101 ) v15 = 1101; else v15 = (unsigned int)v14; if ( a10 ) { if ( a10->m_usesPlayerColor1 ) { v16 = 2602; } else { if ( !a10->m_usesPlayerColor2 ) goto LABEL_10; v16 = 2605; } v17 = (char *)a1->m_player1 + v16; v18 = *(_WORD *)v17; a2->b = v17[2]; *(_WORD *)&a2->r = v18; } LABEL_10: GJBaseGameLayer::updateColor(a1, a2, a3, v15, a5, a6, a7, a8, a9, a10, a11, a12); if ( a1->m_playbackMode ) { begin = a1->m_blendingColors.__begin_; v20 = v15 >> 6; v21 = 1LL << v15; v22 = *(_QWORD *)&begin[8 * (v15 >> 6)]; if ( ((v22 & (1LL << v15)) != 0) == v12 ) { v25 = a1->m_blendingColors2.__begin_; v26 = *(_QWORD *)&v25[8 * v20] & ~v21; } else { v23 = v22 & ~v21; v24 = v22 | v21; if ( !v12 ) v24 = v23; *(_QWORD *)&begin[8 * v20] = v24; v25 = a1->m_blendingColors2.__begin_; v26 = *(_QWORD *)&v25[8 * v20] | v21; } *(_QWORD *)&v25[8 * v20] = v26; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source