// // LevelEditorLayer::updateColor from 0x3657ec to 0x3658f0 (260 bytes) // // 0 xrefs: // // 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 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 v13; // r4 PlayerObject *m_player1; // r3 GLubyte r; // r12 GLubyte g; // r0 GLubyte b; // r3 PlayerObject *v18; // r3 std::uintptr_t *m_bitptr; // r9 _DWORD v20[2]; // [sp+24h] [bp-Ch] BYREF if ( a4 > 1100 ) v13 = 1101; else v13 = a4 & ~(a4 >> 31); if ( a10 ) { if ( a10->m_usesPlayerColor1 ) { m_player1 = a1->m_player1; r = m_player1->m_playerColor1.r; g = m_player1->m_playerColor1.g; b = m_player1->m_playerColor1.b; } else { if ( !a10->m_usesPlayerColor2 ) goto LABEL_10; v18 = a1->m_player1; r = v18->m_playerColor2.r; g = v18->m_playerColor2.g; b = v18->m_playerColor2.b; } a2->r = r; a2->g = g; a2->b = b; } LABEL_10: GJBaseGameLayer::updateColor(a1, a2, a3, v13, a5, a6, a7, a8, a9, a10, a11, a12); if ( a1->m_playbackMode ) { m_bitptr = a1->m_blendingColors.m_start.m_bitptr; sub_365110(v20, (int)m_bitptr, v13); if ( a5 == std::_Bit_reference::operator bool((int)v20) ) { sub_365110(v20, (int)a1->m_blendingColors2.m_start.m_bitptr, v13); std::_Bit_reference::operator=((int)v20, 0); } else { sub_365110(v20, (int)m_bitptr, v13); std::_Bit_reference::operator=((int)v20, a5); sub_365110(v20, (int)a1->m_blendingColors2.m_start.m_bitptr, v13); sub_364FBE((int)v20); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source