// // GJBaseGameLayer::stopCustomEnterEffect from 0x10011eee0 to 0x10011eff7 (279 bytes) // // 2 xrefs: // > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eead // > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eecc // // 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 GJBaseGameLayer::stopCustomEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2, bool a3) { int m_enterChannel; // ecx std::unordered_map> *p_m_enterEffectInstanceVectors; // rdi __int64 v8; // rax __int64 v9; // rcx __int64 v10; // rsi int m_effectID; // r8d __int64 v12; // r9 __int64 v13; // rsi __int64 v14; // r15 std::vector *p_m_exitChannelMap; // rcx std::vector *p_m_enterChannelMap; // rbx int *v17; // [rsp+8h] [rbp-28h] BYREF int v18; // [rsp+10h] [rbp-20h] BYREF _BYTE v19[25]; // [rsp+17h] [rbp-19h] BYREF m_enterChannel = 0; if ( a2->m_enterChannel < 0x65u ) m_enterChannel = a2->m_enterChannel; v18 = m_enterChannel; if ( a3 ) p_m_enterEffectInstanceVectors = &a1->m_gameState.m_enterEffectInstanceVectors; else p_m_enterEffectInstanceVectors = &a1->m_gameState.m_exitEffectInstanceVectors; v17 = &v18; v8 = sub_100166C80(p_m_enterEffectInstanceVectors, &v18, &unk_100816AE0, &v17, v19); v9 = *(_QWORD *)(v8 + 24); v10 = *(_QWORD *)(v8 + 32) - v9; if ( v10 ) { m_effectID = a2->m_effectID; if ( m_effectID ) { v12 = (0xEEEEEEEEEEEEEEEFLL * (v10 >> 4) == 0) - 0x1111111111111111LL * (v10 >> 4); v13 = *(_QWORD *)(v8 + 24); while ( *(_DWORD *)(*(_QWORD *)(v13 + 168) + 1988LL) != m_effectID ) { v13 += 240; if ( !--v12 ) { if ( *(_QWORD *)(v8 + 32) != v9 ) return; goto LABEL_15; } } v14 = v8; sub_10011ECC0(v8 + 24, v13); if ( *(_QWORD *)(v14 + 32) != *(_QWORD *)(v14 + 24) ) return; } else { GJBaseGameLayer::removeCustomEnterEffects(a1, v18, a3); } LABEL_15: p_m_exitChannelMap = &a1->m_gameState.m_exitChannelMap; p_m_enterChannelMap = &a1->m_gameState.m_enterChannelMap; if ( !a3 ) p_m_enterChannelMap = p_m_exitChannelMap; p_m_enterChannelMap->__begin_[v18] = -2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source