// // GJEffectManager::controlActionsForTrigger from 0x100011ee4 to 0x1000128bc (2520 bytes) // // 2 xrefs: // > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edf90 // > LevelEditorLayer::stopTriggersInGroup @ 0x100361760 // // 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 GJEffectManager::controlActionsForTrigger( GJEffectManager *a1, EffectGameObject *a2, GJActionCommand a3) { int m_uniqueID; // w23 int m_objectID; // w8 std::__vector_base::pointer v7; // x8 TouchToggleAction *v8; // x21 __int64 v9; // x9 int v10; // w22 TouchToggleAction *v11; // x10 TouchToggleAction *v12; // x27 TouchToggleAction *v13; // x28 TouchToggleAction *v14; // x8 std::__vector_base::pointer v15; // x26 char v16; // w9 int *v17; // x0 SpawnTriggerAction *end; // x21 std::__vector_base::pointer begin; // x8 __int64 v20; // x9 int v21; // w22 SpawnTriggerAction *v22; // x10 SpawnTriggerAction *v23; // x27 SpawnTriggerAction *v24; // x28 __int128 v25; // q1 SpawnTriggerAction *v26; // x8 std::__vector_base::pointer v27; // x26 char v28; // w9 int *v29; // x0 std::__hash_node_base>, void *> *>::__next_pointer v30; // x20 std::__hash_node_base>, void *> *>::__next_pointer v31; // x8 std::__hash_node_base>, void *> *>::__next_pointer v32; // x24 __int64 v33; // x9 int v34; // w25 std::__hash_node_base>, void *> *> *v35; // x10 std::__hash_node_base>, void *> *> *v36; // x27 std::__hash_node_base>, void *> *> *v37; // x28 _OWORD *v38; // x8 std::__hash_node_base>, void *> *>::__next_pointer v39; // x26 char v40; // w9 std::__hash_node_base>, void *> *> *v41; // x0 ColorAction *ColorAction; // x0 std::__vector_base::pointer v43; // x8 std::__vector_base::pointer k; // x9 std::__hash_node_base, void *> *>::__next_pointer i; // x8 std::__vector_base::pointer v46; // x8 std::__vector_base::pointer v47; // x9 __int64 v48; // x10 int v49; // w24 PulseEffectAction *v50; // x11 PulseEffectAction *v51; // x21 char *v52; // x22 char v53; // w10 std::__hash_node_base>, void *> *>::__next_pointer next; // x22 std::__hash_node_base>, void *> *>::__next_pointer v55; // x8 std::__hash_node_base>, void *> *>::__next_pointer v56; // x9 __int64 v57; // x10 int v58; // w26 std::__hash_node_base>, void *> *> *v59; // x11 std::__hash_node_base>, void *> *> *v60; // x20 char *v61; // x21 char v62; // w10 ToggleTriggerAction *v63; // x21 std::__vector_base::pointer v64; // x8 __int64 v65; // x9 int v66; // w22 ToggleTriggerAction *v67; // x10 ToggleTriggerAction *v68; // x27 ToggleTriggerAction *v69; // x28 ToggleTriggerAction *v70; // x8 std::__vector_base::pointer v71; // x26 char v72; // w9 int *v73; // x0 std::__hash_node_base, void *> *>::__next_pointer j; // x1 char v75; // w8 CollisionTriggerAction *v76; // x21 std::__vector_base::pointer v77; // x8 __int64 v78; // x9 int v79; // w22 CollisionTriggerAction *v80; // x10 CollisionTriggerAction *v81; // x27 CollisionTriggerAction *v82; // x28 __int128 v83; // q1 CollisionTriggerAction *v84; // x8 std::__vector_base::pointer v85; // x26 char v86; // w9 int *v87; // x0 std::__hash_node_base>, void *> *>::__next_pointer v88; // x20 std::__hash_node_base>, void *> *>::__next_pointer v89; // x8 std::__hash_node_base>, void *> *> *v90; // x21 __int64 v91; // x9 int v92; // w22 std::__hash_node_base>, void *> *> *v93; // x24 std::__hash_node_base>, void *> *> *v94; // x26 __int128 v95; // q1 std::__hash_node_base>, void *> *> *v96; // x8 std::__hash_node_base>, void *> *>::__next_pointer v97; // x25 char v98; // w9 std::__hash_node_base>, void *> *> *v99; // x0 m_uniqueID = a2->m_uniqueID; if ( m_uniqueID < 1 ) return; m_objectID = a2->m_objectID; if ( m_objectID <= 1345 ) { if ( m_objectID <= 900 ) { if ( m_objectID > 743 ) { if ( (unsigned int)(m_objectID - 899) >= 2 && m_objectID != 744 ) return; } else if ( (unsigned int)(m_objectID - 29) >= 2 && m_objectID != 105 ) { return; } goto LABEL_99; } if ( m_objectID <= 1005 ) { if ( m_objectID == 901 ) goto LABEL_104; if ( m_objectID != 915 ) return; LABEL_99: ColorAction = GJEffectManager::getColorAction(a1, a2->m_targetColor); if ( ColorAction->m_uniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: ColorAction->m_paused = 0; break; case Pause: ColorAction->m_paused = 1; break; case Stop: ColorAction->m_stepFinished = 1; break; } } return; } if ( m_objectID != 1006 ) { if ( m_objectID == 1007 ) { for ( i = a1->m_opacityEffectMap.__table_.__p1_.__value_.__next_; i; i = i->__next_ ) { if ( LODWORD(i[6].__next_) == m_uniqueID ) { switch ( a3 ) { case Resume: BYTE1(i[4].__next_) = 0; break; case Pause: BYTE1(i[4].__next_) = 1; break; case Stop: LOBYTE(i[4].__next_) = 1; break; } } } return; } if ( m_objectID != 1268 ) return; end = a1->m_spawnTriggerActions.__end_; begin = a1->m_spawnTriggerActions.__begin_; if ( end == begin ) return; v20 = 0; v21 = 0; while ( 1 ) { v22 = &begin[v20]; if ( v22->m_triggerUniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: v28 = 0; goto LABEL_53; case Pause: v28 = 1; LABEL_53: v22->m_disabled = v28; break; case Stop: v23 = &begin[v20]; if ( &v23[1] == end ) { v27 = end; end = &begin[v20]; } else { do { v24 = v23 + 1; v25 = *(_OWORD *)&v23[1].m_deltaTime; *(_OWORD *)&v23->m_finished = *(_OWORD *)&v23[1].m_finished; *(_OWORD *)&v23->m_deltaTime = v25; *(_OWORD *)&v23->m_controlID = *(_OWORD *)&v23[1].m_controlID; sub_100017728(&v23->m_remapKeys, &v23[1].m_remapKeys); v26 = v23 + 2; ++v23; } while ( v26 != end ); v27 = a1->m_spawnTriggerActions.__end_; end = v24; } while ( v27 != end ) { v29 = v27[-1].m_remapKeys.__begin_; if ( v29 ) { v27[-1].m_remapKeys.__end_ = v29; operator delete(v29); } --v27; } a1->m_spawnTriggerActions.__end_ = end; begin = a1->m_spawnTriggerActions.__begin_; goto LABEL_55; } } ++v21; LABEL_55: v20 = v21; if ( 0x8E38E38E38E38E39LL * (((char *)end - (char *)begin) >> 3) <= v21 ) return; } } v46 = a1->m_pulseEffectVector.__begin_; v47 = a1->m_pulseEffectVector.__end_; if ( v47 != v46 ) { v48 = 0; v49 = 0; do { v50 = &v46[v48]; if ( v50->m_triggerUniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: v53 = 0; goto LABEL_135; case Pause: v53 = 1; LABEL_135: v50->m_disabled = v53; break; case Stop: v51 = &v46[v48]; v52 = (char *)((char *)v47 - (char *)&v51[1]); if ( v47 != &v51[1] ) { memmove(&v46[v48], &v51[1], (char *)v47 - (char *)&v51[1]); v46 = a1->m_pulseEffectVector.__begin_; } v47 = (std::__vector_base::pointer)&v52[(_QWORD)v51]; a1->m_pulseEffectVector.__end_ = (std::__vector_base::pointer)&v52[(_QWORD)v51]; goto LABEL_137; } } ++v49; LABEL_137: v48 = v49; } while ( 0x8E38E38E38E38E39LL * (((char *)v47 - (char *)v46) >> 3) > v49 ); } next = a1->m_pulseEffectMap.__table_.__p1_.__value_.__next_; if ( !next ) return; while ( 1 ) { v55 = next[3].__next_; v56 = next[4].__next_; if ( v56 != v55 ) break; LABEL_153: next = next->__next_; if ( !next ) return; } v57 = 0; v58 = 0; while ( 1 ) { v59 = &v55[9 * v57]; if ( HIDWORD(v59[7].__next_) == m_uniqueID ) { switch ( a3 ) { case Resume: v62 = 0; goto LABEL_150; case Pause: v62 = 1; LABEL_150: LOBYTE(v59->__next_) = v62; break; case Stop: v60 = &v55[9 * v57]; v61 = (char *)((char *)v56 - (char *)&v60[9]); if ( v56 != &v60[9] ) { memmove(&v55[9 * v57], &v60[9], (char *)v56 - (char *)&v60[9]); v55 = next[3].__next_; } v56 = (std::__hash_node_base>, void *> *>::__next_pointer)&v61[(_QWORD)v60]; next[4].__next_ = (std::__hash_node_base>, void *> *>::__next_pointer)&v61[(_QWORD)v60]; goto LABEL_152; } } ++v58; LABEL_152: v57 = v58; if ( 0x8E38E38E38E38E39LL * (v56 - v55) <= v58 ) goto LABEL_153; } } if ( m_objectID > 1814 ) { if ( m_objectID <= 3032 ) { if ( m_objectID != 1815 ) { if ( m_objectID != 2067 && m_objectID != 3016 ) return; goto LABEL_104; } v76 = a1->m_unkVector230.__end_; v77 = a1->m_unkVector230.__begin_; if ( v76 == v77 ) return; v78 = 0; v79 = 0; while ( 1 ) { v80 = &v77[v78]; if ( v80->m_triggerUniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: v86 = 0; goto LABEL_198; case Pause: v86 = 1; LABEL_198: v80->m_disabled = v86; break; case Stop: v81 = &v77[v78]; if ( &v81[1] == v76 ) { v85 = v76; v76 = &v77[v78]; } else { do { v82 = v81 + 1; v83 = *(_OWORD *)&v81[1].m_triggerOnExit; *(_OWORD *)&v81->m_disabled = *(_OWORD *)&v81[1].m_disabled; *(_OWORD *)&v81->m_triggerOnExit = v83; sub_100017728(&v81->m_remapKeys, &v81[1].m_remapKeys); v84 = v81 + 2; ++v81; } while ( v84 != v76 ); v85 = a1->m_unkVector230.__end_; v76 = v82; } while ( v85 != v76 ) { v87 = v85[-1].m_remapKeys.__begin_; if ( v87 ) { v85[-1].m_remapKeys.__end_ = v87; operator delete(v87); } --v85; } a1->m_unkVector230.__end_ = v76; v77 = a1->m_unkVector230.__begin_; goto LABEL_200; } } ++v79; LABEL_200: v78 = v79; if ( 0x6DB6DB6DB6DB6DB7LL * (((char *)v76 - (char *)v77) >> 3) <= (unsigned __int64)v79 ) return; } } if ( m_objectID != 3033 ) { if ( m_objectID != 3614 ) { if ( m_objectID != 3615 ) return; v30 = a1->m_unkMap3f8.__table_.__p1_.__value_.__next_; if ( !v30 ) return; while ( 1 ) { v31 = v30[3].__next_; v32 = v30[4].__next_; if ( v32 != v31 ) break; LABEL_92: v30 = v30->__next_; if ( !v30 ) return; } v33 = 0; v34 = 0; while ( 1 ) { v35 = &v31[7 * v33]; if ( LODWORD(v35[2].__next_) == m_uniqueID ) { switch ( a3 ) { case Resume: v40 = 0; goto LABEL_82; case Pause: v40 = 1; LABEL_82: LOBYTE(v35->__next_) = v40; break; case Stop: v36 = &v31[7 * v33]; if ( &v36[7] == v32 ) { v39 = v32; v32 = &v31[7 * v33]; } else { do { v37 = v36 + 7; *(_OWORD *)&v36->__next_ = *(_OWORD *)&v36[7].__next_; *(_OWORD *)((char *)&v36[1].__next_ + 5) = *(_OWORD *)((char *)&v36[8].__next_ + 5); sub_100017728(&v36[4], &v36[11]); v38 = &v36[14]; v36 += 7; } while ( v38 != (_OWORD *)v32 ); v39 = v30[4].__next_; v32 = v37; } while ( v39 != v32 ) { v41 = v39[-3].__next_; if ( v41 ) { v39[-2].__next_ = v41; operator delete(v41); } v39 -= 7; } v30[4].__next_ = v32; v31 = v30[3].__next_; goto LABEL_84; } } ++v34; LABEL_84: v33 = v34; if ( 0x6DB6DB6DB6DB6DB7LL * (v32 - v31) <= (unsigned __int64)v34 ) goto LABEL_92; } } for ( j = a1->m_timerItemMap.__table_.__p1_.__value_.__next_; ; j = (std::__hash_node_base, void *> *>::__next_pointer)sub_1000188C8(&a1->m_timerItemMap, j) ) { while ( 1 ) { if ( !j ) return; if ( LODWORD(j[9].__next_) == m_uniqueID ) break; LABEL_186: j = j->__next_; } if ( a3 == Resume ) break; if ( a3 == Pause ) { v75 = 1; LABEL_185: LOBYTE(j[13].__next_) = v75; goto LABEL_186; } if ( a3 ) goto LABEL_186; } v75 = 0; goto LABEL_185; } LABEL_104: v43 = a1->m_unkVector560.__begin_; for ( k = a1->m_unkVector560.__end_; v43 != k; ++v43 ) { if ( v43->m_triggerUniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: v43->m_disabled = 0; break; case Pause: v43->m_disabled = 1; break; case Stop: v43->m_finishRelated = 1; break; } } } return; } if ( m_objectID > 1610 ) { if ( m_objectID != 1611 ) { if ( m_objectID != 1812 ) { if ( m_objectID != 1814 ) return; goto LABEL_104; } v63 = a1->m_unkVector248.__end_; v64 = a1->m_unkVector248.__begin_; if ( v63 == v64 ) return; v65 = 0; v66 = 0; while ( 1 ) { v67 = &v64[v65]; if ( v67->m_triggerUniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: v72 = 0; goto LABEL_166; case Pause: v72 = 1; LABEL_166: v67->m_disabled = v72; break; case Stop: v68 = &v64[v65]; if ( &v68[1] == v63 ) { v71 = v63; v63 = &v64[v65]; } else { do { v69 = v68 + 1; *(_OWORD *)&v68->m_disabled = *(_OWORD *)&v68[1].m_disabled; v68->m_controlID = v68[1].m_controlID; sub_100017728(&v68->m_remapKeys, &v68[1].m_remapKeys); v70 = v68 + 2; ++v68; } while ( v70 != v63 ); v71 = a1->m_unkVector248.__end_; v63 = v69; } while ( v71 != v63 ) { v73 = v71[-1].m_remapKeys.__begin_; if ( v73 ) { v71[-1].m_remapKeys.__end_ = v73; operator delete(v73); } --v71; } a1->m_unkVector248.__end_ = v63; v64 = a1->m_unkVector248.__begin_; goto LABEL_168; } } ++v66; LABEL_168: v65 = v66; if ( 0xAAAAAAAAAAAAAAABLL * (((char *)v63 - (char *)v64) >> 4) <= v66 ) return; } } v88 = a1->m_countTriggerActions.__table_.__p1_.__value_.__next_; if ( !v88 ) return; while ( 1 ) { v89 = v88[3].__next_; v90 = v88[4].__next_; if ( v90 != v89 ) break; LABEL_230: v88 = v88->__next_; if ( !v88 ) return; } v91 = 0; v92 = 0; while ( 1 ) { v93 = &v89[8 * v91]; if ( HIDWORD(v93[2].__next_) == m_uniqueID ) { switch ( a3 ) { case Resume: v98 = 0; goto LABEL_220; case Pause: v98 = 1; LABEL_220: LOBYTE(v93->__next_) = v98; break; case Stop: if ( &v93[8] == v90 ) { v97 = v90; v90 = &v89[8 * v91]; } else { do { v94 = v93 + 8; v95 = *(_OWORD *)&v93[10].__next_; *(_OWORD *)&v93->__next_ = *(_OWORD *)&v93[8].__next_; *(_OWORD *)&v93[2].__next_ = v95; LOBYTE(v93[4].__next_) = v93[12].__next_; sub_100017728(&v93[5], &v93[13]); v96 = v93 + 16; v93 += 8; } while ( v96 != v90 ); v97 = v88[4].__next_; v90 = v94; } while ( v97 != v90 ) { v99 = v97[-3].__next_; if ( v99 ) { v97[-2].__next_ = v99; operator delete(v99); } v97 -= 8; } v88[4].__next_ = v90; v89 = v88[3].__next_; goto LABEL_222; } } ++v92; LABEL_222: v91 = v92; if ( v92 >= (unsigned __int64)(((char *)v90 - (char *)v89) >> 6) ) goto LABEL_230; } } if ( (unsigned int)(m_objectID - 1346) < 2 ) goto LABEL_104; if ( m_objectID == 1595 ) { v7 = a1->m_unkVector1e0.__begin_; v8 = a1->m_unkVector1e0.__end_; if ( v8 != v7 ) { v9 = 0; v10 = 0; do { v11 = &v7[v9]; if ( v11->m_triggerUniqueID == m_uniqueID ) { switch ( a3 ) { case Resume: v16 = 0; goto LABEL_18; case Pause: v16 = 1; LABEL_18: v11->m_disabled = v16; break; case Stop: v12 = &v7[v9]; if ( &v12[1] == v8 ) { v15 = v8; v8 = &v7[v9]; } else { do { v13 = v12 + 1; *(_OWORD *)&v12->m_disabled = *(_OWORD *)&v12[1].m_disabled; *(_OWORD *)((char *)&v12->m_touchTriggerType + 1) = *(_OWORD *)((char *)&v12[1].m_touchTriggerType + 1); sub_100017728(&v12->m_remapKeys, &v12[1].m_remapKeys); v14 = v12 + 2; ++v12; } while ( v14 != v8 ); v15 = a1->m_unkVector1e0.__end_; v8 = v13; } while ( v15 != v8 ) { v17 = v15[-1].m_remapKeys.__begin_; if ( v17 ) { v15[-1].m_remapKeys.__end_ = v17; operator delete(v17); } --v15; } a1->m_unkVector1e0.__end_ = v8; v7 = a1->m_unkVector1e0.__begin_; goto LABEL_20; } } ++v10; LABEL_20: v9 = v10; } while ( 0x6DB6DB6DB6DB6DB7LL * (((char *)v8 - (char *)v7) >> 3) > (unsigned __int64)v10 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source