// // GameObject::addToColorGroup from 0x646d6c to 0x646e10 (164 bytes) // // 3 xrefs: // > PlayLayer::optimizeColorGroups @ 0x5d82b4 // > GJBaseGameLayer::calculateColorGroups @ 0x881608 // > @ 0x49830 // // 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 GameObject::addToColorGroup(GameObject *a1, int a2) { int m_colorGroupCount; // w4 std::array *m_colorGroups; // x3 __int16 *i; // x0 int v7; // t1 if ( a1->m_colorGroupCount <= 9 && (unsigned int)(a2 - 1) <= 0x270E ) { GameObject::createColorGroupContainer(a1, 10); m_colorGroupCount = a1->m_colorGroupCount; m_colorGroups = a1->m_colorGroups; if ( m_colorGroupCount > 0 ) { if ( m_colorGroups->__elems_[0] == a2 ) return; for ( i = &m_colorGroups->__elems_[1]; i != &m_colorGroups->__elems_[m_colorGroupCount - 1 + 1]; ++i ) { v7 = *i; if ( v7 == a2 ) return; } } m_colorGroups->__elems_[a1->m_colorGroupCount++] = a2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source