// // GJBaseGameLayer::controlAreaEffectWithID from 0x898cb4 to 0x898e64 (432 bytes) // // 3 xrefs: // > EffectGameObject::triggerObject @ 0x76fc10 // > GJBaseGameLayer::controlTriggersWithControlID @ 0x898ea4 // > @ 0x57fc0 // // 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::controlAreaEffectWithID(GJBaseGameLayer *a1, int a2, int a3, GJActionCommand a4) { int v4; // w20 std::vector *p_m_moveEffectInstances; // x19 int v6; // w0 unsigned int v7; // w25 std::vector *p_m_rotateEffectInstances; // x27 EnterEffectInstance *m_start; // x3 int v13; // w23 unsigned __int64 v14; // x22 __int64 v15; // x4 __int64 v16; // x1 v4 = 1; p_m_moveEffectInstances = &a1->m_gameState.m_moveEffectInstances; v6 = -1; v7 = a3 != -1; LABEL_2: switch ( v6 ) { case 0: p_m_rotateEffectInstances = &a1->m_gameState.m_rotateEffectInstances; goto LABEL_4; case 1: p_m_rotateEffectInstances = &a1->m_gameState.m_scaleEffectInstances; goto LABEL_4; case 2: p_m_rotateEffectInstances = &a1->m_gameState.m_fadeEffectInstances; LABEL_4: if ( p_m_rotateEffectInstances ) goto LABEL_5; goto LABEL_17; case 3: p_m_rotateEffectInstances = &a1->m_gameState.m_tintEffectInstances; if ( a1 == (GJBaseGameLayer *)-1760LL ) return; goto LABEL_5; default: break; } while ( 1 ) { p_m_rotateEffectInstances = p_m_moveEffectInstances; if ( p_m_moveEffectInstances ) break; if ( v4 == 5 ) return; LABEL_17: v6 = ++v4 - 2; if ( (unsigned int)(v4 - 2) <= 3 ) goto LABEL_2; } LABEL_5: m_start = p_m_rotateEffectInstances->m_start; v13 = 0; v14 = 0; v15 = (char *)p_m_rotateEffectInstances->m_finish - (char *)p_m_rotateEffectInstances->m_start; while ( v14 < 0xF83E0F83E0F83E1LL * (v15 >> 3) ) { v16 = (__int64)&m_start[v14]; if ( v7 ) { if ( *(_DWORD *)(v16 + 256) != a3 ) goto LABEL_7; if ( a4 == Stop ) { std::vector::_M_erase((__int64)p_m_rotateEffectInstances, v16); goto LABEL_27; } LABEL_12: if ( a4 == Pause ) { *(_BYTE *)(v16 + 220) = 1; *(_BYTE *)(v16 + 221) = 1; } else if ( a4 == Resume ) { *(_BYTE *)(v16 + 220) = 0; *(_BYTE *)(v16 + 221) = 0; } if ( (a2 > 0) > v7 ) break; LABEL_7: v14 = ++v13; } else { if ( *(_DWORD *)(*(_QWORD *)(v16 + 192) + 1972LL) != a2 ) goto LABEL_7; if ( a4 ) goto LABEL_12; std::vector::_M_erase((__int64)p_m_rotateEffectInstances, v16); if ( a2 > 0 ) break; LABEL_27: m_start = p_m_rotateEffectInstances->m_start; v15 = (char *)p_m_rotateEffectInstances->m_finish - (char *)p_m_rotateEffectInstances->m_start; } } if ( v4 != 5 ) goto LABEL_17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source