//
// GJBaseGameLayer::activateCustomRing from 0x1001edcc0 to 0x1001edd54 (148 bytes)
//
// 1 xrefs:
// > PlayerObject::ringJump @ 0x1002282e8
//
// 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 GJBaseGameLayer::activateCustomRing(GJBaseGameLayer *a1, RingObject *a2)
{
_BOOL4 m_isSpawnOnly; // w9
__int64 m_targetGroupID; // x1
_BOOL8 m_activateGroup; // x2
void *__p; // [xsp+8h] [xbp-28h] BYREF
void *v7; // [xsp+10h] [xbp-20h]
__int64 v8; // [xsp+18h] [xbp-18h]
m_isSpawnOnly = a2->m_isSpawnOnly;
m_targetGroupID = (unsigned int)a2->m_targetGroupID;
if ( m_isSpawnOnly )
{
__p = nullptr;
v7 = nullptr;
v8 = 0;
((void (__fastcall *)(GJBaseGameLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double))a1->spawnGroup)(
a1,
m_targetGroupID,
0,
&__p,
(unsigned int)a2->m_uniqueID,
(unsigned int)a2->m_controlID,
0.0);
}
else
{
m_activateGroup = a2->m_activateGroup;
__p = nullptr;
v7 = nullptr;
v8 = 0;
((void (__fastcall *)(GJBaseGameLayer *, __int64, _BOOL8, void **, _QWORD, _QWORD))a1->toggleGroupTriggered)(
a1,
m_targetGroupID,
m_activateGroup,
&__p,
(unsigned int)a2->m_uniqueID,
(unsigned int)a2->m_controlID);
}
if ( __p )
{
v7 = __p;
operator delete(__p);
}
}