// // GJBaseGameLayer::controlEventLink from 0x480810 to 0x48088c (124 bytes) // // 2 xrefs: // > GJBaseGameLayer::controlTriggersWithControlID @ 0x495c9a // > GJBaseGameLayer::controlTriggersInGroup @ 0x495f62 // // 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 GJBaseGameLayer::controlEventLink(GJBaseGameLayer *a1, int a2, int a3, GJActionCommand a4) { std::_rb_tree_base *p_m_header; // r5 std::_rb_tree_base *m_left; // r4 unsigned int v9; // r11 int i; // r2 std::_rb_tree_base *v11; // r1 int v12; // r1 int v14; // [sp+4h] [bp-8h] p_m_header = &a1->m_gameState.m_unkMapPairGJGameEventIntVectorEventTriggerInstance.m_header; m_left = a1->m_gameState.m_unkMapPairGJGameEventIntVectorEventTriggerInstance.m_header.m_left; LABEL_2: if ( m_left != p_m_header ) { v9 = 0; for ( i = 28; ; i = v14 ) { while ( 1 ) { v11 = m_left[1].m_left; if ( v9 >= -1227133513 * (((char *)m_left[1].m_right - (char *)v11) >> 2) ) { m_left = (std::_rb_tree_base *)sub_761FA8(m_left); goto LABEL_2; } v12 = (int)v11 + i * v9; if ( a3 == -1 ? *(_DWORD *)(v12 + 4) == a2 : *(_DWORD *)(v12 + 8) == a3 ) break; LABEL_16: ++v9; } if ( a4 ) { if ( a4 == Pause ) { *(_BYTE *)(v12 + 12) = 1; } else if ( a4 == Resume ) { *(_BYTE *)(v12 + 12) = 0; } goto LABEL_16; } v14 = i; std::vector::_M_erase((int)&m_left[1].m_left, v12); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source