// // GJEffectManager::controlActionsForTrigger from 0x4a2bd4 to 0x4a3032 (1118 bytes) // // 2 xrefs: // > LevelEditorLayer::stopTriggersInGroup @ 0x36db2a // > GJBaseGameLayer::controlTriggersInGroup @ 0x496000 // // 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 GJEffectManager::controlActionsForTrigger(GJEffectManager *a1, EffectGameObject *a2, GJActionCommand a3) { int m_uniqueID; // r6 int m_objectID; // r3 ColorAction *ColorAction; // r0 GroupCommandObject2 *m_finish; // r2 GroupCommandObject2 *j; // r3 std::__detail::_Hash_node_base *m; // r3 std::__detail::_Hash_node_base *M_nxt; // r5 unsigned int v12; // r7 std::__detail::_Hash_node_base *v13; // r2 std::__detail::_Hash_node_base *v14; // r1 unsigned int v15; // r7 TouchToggleAction *m_start; // r2 int v17; // r1 unsigned int v18; // r7 CollisionTriggerAction *v19; // r2 int v20; // r1 unsigned int v21; // r7 std::vector *i; // r9 ToggleTriggerAction *v23; // r3 int v24; // r1 unsigned int v25; // r7 SpawnTriggerAction *v26; // r1 int v27; // r1 unsigned int v28; // r7 PulseEffectAction *v29; // r2 int v30; // r1 std::__detail::_Hash_node_base *v31; // r5 unsigned int v32; // r7 std::__detail::_Hash_node_base *v33; // r2 int v34; // r1 void **p_M_nxt; // r1 int *k; // r5 std::__detail::_Hash_node_base *v37; // r5 unsigned int v38; // r7 std::__detail::_Hash_node_base *v39; // r2 int v40; // r1 m_uniqueID = a2->m_uniqueID; m_objectID = a2->m_objectID; if ( m_uniqueID <= 0 ) return; if ( m_objectID > 1347 ) { if ( m_objectID != 1815 ) { if ( m_objectID < 1816 ) { if ( m_objectID != 1611 ) { if ( m_objectID <= 1611 ) { if ( m_objectID != 1595 ) return; v15 = 0; while ( 1 ) { while ( 1 ) { m_start = a1->m_unkVector1e0.m_start; if ( v15 >= -1171354717 * (((char *)a1->m_unkVector1e0.m_finish - (char *)m_start) >> 2) ) return; v17 = (int)&m_start[v15]; if ( *(_DWORD *)(v17 + 20) == m_uniqueID ) break; LABEL_89: ++v15; } if ( a3 ) { if ( a3 == Pause ) { m_start[v15].m_disabled = 1; } else if ( a3 == Resume ) { m_start[v15].m_disabled = 0; } goto LABEL_89; } std::vector::_M_erase((int)&a1->m_unkVector1e0, v17); } } if ( m_objectID != 1812 ) { if ( m_objectID != 1814 ) return; goto LABEL_44; } v21 = 0; for ( i = &a1->m_unkVector248; ; std::vector::_M_erase((int)i, v24) ) { while ( 1 ) { v23 = a1->m_unkVector248.m_start; if ( v21 >= a1->m_unkVector248.m_finish - v23 ) return; v24 = (int)&v23[v21]; if ( *(_DWORD *)(v24 + 12) == m_uniqueID ) break; LABEL_111: ++v21; } if ( a3 ) { if ( a3 == Pause ) { v23[v21].m_disabled = 1; } else if ( a3 == Resume ) { v23[v21].m_disabled = 0; } goto LABEL_111; } } } M_nxt = a1->m_countTriggerActions._M_h._M_before_begin._M_nxt; LABEL_67: if ( !M_nxt ) return; v12 = 0; while ( 1 ) { while ( 1 ) { v13 = M_nxt[2]._M_nxt; if ( v12 >= -1431655765 * (((char *)M_nxt[3]._M_nxt - (char *)v13) >> 4) ) { M_nxt = M_nxt->_M_nxt; goto LABEL_67; } v14 = &v13[12 * v12]; if ( v14[5]._M_nxt == (std::__detail::_Hash_node_base *)m_uniqueID ) break; LABEL_77: ++v12; } if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v13[12 * v12]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v13[12 * v12]._M_nxt) = 0; } goto LABEL_77; } std::vector::erase((int)&M_nxt[2], v14); } } if ( m_objectID == 3033 ) { LABEL_44: m_finish = a1->m_unkVector560.m_finish; for ( j = a1->m_unkVector560.m_start; j != m_finish; ++j ) { if ( j->m_triggerUniqueID == m_uniqueID ) { if ( a3 ) { if ( a3 == Pause ) { j->m_disabled = 1; } else if ( a3 == Resume ) { j->m_disabled = 0; } } else { j->m_finishRelated = 1; } } } return; } if ( m_objectID <= 3033 ) { if ( m_objectID != 2067 && m_objectID != 3016 ) return; goto LABEL_44; } if ( m_objectID != 3614 ) { if ( m_objectID != 3615 ) return; v37 = a1->m_unkMap3f8._M_h._M_before_begin._M_nxt; LABEL_160: if ( !v37 ) return; v38 = 0; while ( 1 ) { while ( 1 ) { v39 = v37[2]._M_nxt; if ( v38 >= -1171354717 * (v37[3]._M_nxt - v39) ) { v37 = v37->_M_nxt; goto LABEL_160; } v40 = (int)&v39[11 * v38]; if ( *(_DWORD *)(v40 + 16) == m_uniqueID ) break; LABEL_170: ++v38; } if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v39[11 * v38]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v39[11 * v38]._M_nxt) = 0; } goto LABEL_170; } std::vector::erase((int)&v37[2], v40); } } p_M_nxt = (void **)&a1->m_timerItemMap._M_h._M_before_begin._M_nxt->_M_nxt; for ( k = (int *)&a1->m_timerItemMap; ; p_M_nxt = (void **)std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::erase( k, p_M_nxt) ) { while ( 1 ) { if ( !p_M_nxt ) return; if ( p_M_nxt[16] == (void *)m_uniqueID ) break; LABEL_157: p_M_nxt = (void **)*p_M_nxt; } if ( a3 ) { if ( a3 == Pause ) { *((_BYTE *)p_M_nxt + 84) = 1; } else if ( a3 == Resume ) { *((_BYTE *)p_M_nxt + 84) = 0; } goto LABEL_157; } } } v18 = 0; while ( 1 ) { while ( 1 ) { v19 = a1->m_unkVector230.m_start; if ( v18 >= -1171354717 * (((char *)a1->m_unkVector230.m_finish - (char *)v19) >> 2) ) return; v20 = (int)&v19[v18]; if ( *(_DWORD *)(v20 + 24) == m_uniqueID ) break; LABEL_100: ++v18; } if ( a3 ) { if ( a3 == Pause ) { v19[v18].m_disabled = 1; } else if ( a3 == Resume ) { v19[v18].m_disabled = 0; } goto LABEL_100; } std::vector::_M_erase((int)&a1->m_unkVector230, v20); } } if ( m_objectID >= 1346 ) goto LABEL_44; if ( m_objectID <= 900 ) { if ( m_objectID < 899 && m_objectID != 105 ) { if ( m_objectID > 105 ) { if ( m_objectID != 744 ) return; } else if ( (unsigned int)(m_objectID - 29) > 1 ) { return; } } LABEL_37: ColorAction = GJEffectManager::getColorAction(a1, a2->m_targetColor); if ( ColorAction->m_uniqueID == m_uniqueID ) { if ( a3 ) { if ( a3 == Pause ) { ColorAction->m_paused = 1; } else if ( a3 == Resume ) { ColorAction->m_paused = 0; } } else { ColorAction->m_stepFinished = 1; } } return; } if ( m_objectID == 1006 ) { v28 = 0; while ( 1 ) { v29 = a1->m_pulseEffectVector.m_start; if ( v28 >= 954437177 * (((char *)a1->m_pulseEffectVector.m_finish - (char *)v29) >> 3) ) break; v30 = (int)&v29[v28]; if ( *(_DWORD *)(v30 + 60) != m_uniqueID ) goto LABEL_133; if ( a3 ) { if ( a3 == Pause ) { v29[v28].m_disabled = 1; } else if ( a3 == Resume ) { v29[v28].m_disabled = 0; } LABEL_133: ++v28; } else { std::vector::erase((int)&a1->m_pulseEffectVector, v30); } } v31 = a1->m_pulseEffectMap._M_h._M_before_begin._M_nxt; LABEL_135: if ( !v31 ) return; v32 = 0; while ( 1 ) { while ( 1 ) { v33 = v31[2]._M_nxt; if ( v32 >= 954437177 * (((char *)v31[3]._M_nxt - (char *)v33) >> 3) ) { v31 = v31->_M_nxt; goto LABEL_135; } v34 = (int)&v33[18 * v32]; if ( *(_DWORD *)(v34 + 60) == m_uniqueID ) break; LABEL_145: ++v32; } if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v33[18 * v32]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v33[18 * v32]._M_nxt) = 0; } goto LABEL_145; } std::vector::erase((int)&v31[2], v34); } } if ( m_objectID <= 1006 ) { if ( m_objectID != 901 ) { if ( m_objectID != 915 ) return; goto LABEL_37; } goto LABEL_44; } if ( m_objectID != 1007 ) { if ( m_objectID != 1268 ) return; v25 = 0; while ( 1 ) { while ( 1 ) { v26 = a1->m_spawnTriggerActions.m_start; if ( v25 >= -1227133513 * (((char *)a1->m_spawnTriggerActions.m_finish - (char *)v26) >> 3) ) return; v27 = (int)&v26[v25]; if ( *(_DWORD *)(v27 + 28) == m_uniqueID ) break; LABEL_122: ++v25; } if ( a3 ) { if ( a3 == Pause ) { *(_BYTE *)(v27 + 1) = 1; } else if ( a3 == Resume ) { *(_BYTE *)(v27 + 1) = 0; } goto LABEL_122; } std::vector::erase((int)&a1->m_spawnTriggerActions, v27); } } for ( m = a1->m_opacityEffectMap._M_h._M_before_begin._M_nxt; m; m = m->_M_nxt ) { if ( m[9]._M_nxt == (std::__detail::_Hash_node_base *)m_uniqueID ) { if ( a3 ) { if ( a3 == Pause ) { BYTE1(m[5]._M_nxt) = 1; } else if ( a3 == Resume ) { BYTE1(m[5]._M_nxt) = 0; } } else { LOBYTE(m[5]._M_nxt) = 1; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source