// // GJBaseGameLayer::controlAreaEffectWithID from 0x495b84 to 0x495c60 (220 bytes) // // 2 xrefs: // > EffectGameObject::triggerObject @ 0x3eddb2 // > GJBaseGameLayer::controlTriggersWithControlID @ 0x495c80 // // 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 v8; // r10 std::vector *p_m_rotateEffectInstances; // r4 unsigned int v10; // r11 int v11; // r1 _BOOL4 v12; // [sp+4h] [bp-8h] v8 = 1; v12 = a3 != -1; while ( 2 ) { switch ( v8 ) { case 2: p_m_rotateEffectInstances = &a1->m_gameState.m_rotateEffectInstances; goto LABEL_22; case 3: p_m_rotateEffectInstances = &a1->m_gameState.m_scaleEffectInstances; goto LABEL_22; case 4: p_m_rotateEffectInstances = &a1->m_gameState.m_fadeEffectInstances; LABEL_22: if ( !p_m_rotateEffectInstances ) goto LABEL_5; goto LABEL_10; case 5: p_m_rotateEffectInstances = &a1->m_gameState.m_tintEffectInstances; if ( a1 != (GJBaseGameLayer *)-1296 ) goto LABEL_10; return; default: p_m_rotateEffectInstances = &a1->m_gameState.m_moveEffectInstances; if ( a1 == (GJBaseGameLayer *)-1248 ) goto LABEL_4; LABEL_10: v10 = 0; break; } while ( v10 < -1944890851 * (((char *)p_m_rotateEffectInstances->m_finish - (char *)p_m_rotateEffectInstances->m_start) >> 2) ) { v11 = (int)&p_m_rotateEffectInstances->m_start[v10]; if ( v12 ) { if ( *(_DWORD *)(v11 + 208) != a3 ) goto LABEL_21; if ( a4 ) goto LABEL_18; std::vector::erase((int)p_m_rotateEffectInstances, v11); } else { if ( *(_DWORD *)(*(_DWORD *)(v11 + 164) + 1788) != a2 ) goto LABEL_21; if ( a4 ) { LABEL_18: if ( a4 == Pause ) { *(_BYTE *)(v11 + 188) = 1; *(_BYTE *)(v11 + 189) = 1; } else if ( a4 == Resume ) { *(_BYTE *)(v11 + 188) = 0; *(_BYTE *)(v11 + 189) = 0; } if ( !v12 && a2 > 0 ) break; LABEL_21: ++v10; } else { std::vector::erase((int)p_m_rotateEffectInstances, v11); if ( a2 > 0 ) break; } } } LABEL_4: if ( v8 != 5 ) { LABEL_5: ++v8; continue; } break; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source