// // GameObject::addToOpacityGroup from 0x10025d650 to 0x10025d6e8 (152 bytes) // // 1 xrefs: // > PlayLayer::optimizeOpacityGroups @ 0x100117654 // // 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 GameObject::addToOpacityGroup(GameObject *a1, int a2) { __int64 m_opacityGroupCount; // x21 std::array *m_opacityGroups; // x0 __int64 v7; // x8 std::array *v8; // x9 int v9; // t1 if ( (unsigned int)(a2 - 10000) >= 0xFFFFD8F1 && a1->m_opacityGroupCount <= 9 ) { m_opacityGroupCount = a1->m_opacityGroupCount; m_opacityGroups = a1->m_opacityGroups; if ( !m_opacityGroups ) { m_opacityGroups = (std::array *)operator new[](0x14u); a1->m_opacityGroups = m_opacityGroups; *(_QWORD *)m_opacityGroups->__elems_ = 0; *(_QWORD *)&m_opacityGroups->__elems_[4] = 0; *(_DWORD *)&m_opacityGroups->__elems_[8] = 0; } if ( (int)m_opacityGroupCount < 1 ) { LABEL_12: m_opacityGroups->__elems_[m_opacityGroupCount] = a2; ++a1->m_opacityGroupCount; } else { v7 = m_opacityGroupCount; v8 = m_opacityGroups; while ( 1 ) { v9 = v8->__elems_[0]; v8 = (std::array *)((char *)v8 + 2); if ( v9 == a2 ) break; if ( !--v7 ) goto LABEL_12; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source