// // GJBaseGameLayer::buttonIsRelevant from 0x864230 to 0x864370 (320 bytes) // // 2 xrefs: // > GJBaseGameLayer::shouldUseSubstepForButton @ 0x8643f4 // > @ 0x37e90 // // 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 // bool GJBaseGameLayer::buttonIsRelevant(GJBaseGameLayer *a1, const PlayerButtonCommand *a2) { float *v3; // x21 _BOOL4 m_isPlayer2; // w24 unsigned int m_twoPlayerMode; // w22 unsigned int v8; // w23 GameManager *v9; // x0 bool hasActiveDualTouch; // w0 _BOOL4 v11; // w21 if ( a2->m_button != Jump ) return 0; v3 = &a1->m_varianceValues.__elems_[1975]; m_isPlayer2 = a2->m_isPlayer2; m_twoPlayerMode = a1->m_levelSettings->m_twoPlayerMode; v8 = !m_isPlayer2; if ( !a1->m_isPlatformer && !a1->m_useReplay ) { v9 = GameManager::sharedState(); if ( GameManager::getGameVariable(v9, "0010") ) v8 = m_isPlayer2; } hasActiveDualTouch = GJEffectManager::hasActiveDualTouch(a1->m_effectManager); if ( !a2->m_isPush && !*((_BYTE *)v3 + 236) ) { if ( m_twoPlayerMode > v8 ) { LABEL_20: if ( !a1->m_gameState.m_isDualMode ) return 0; v11 = v8 <= (m_twoPlayerMode ^ 1); return v11 && (unsigned __int8)isRelevantForPlayer(a1->m_player2, (__int64)a2); } LABEL_14: if ( a1->m_gameState.m_isDualMode ) { v11 = v8 <= (m_twoPlayerMode ^ 1); if ( (unsigned __int8)isRelevantForPlayer(a1->m_player1, (__int64)a2) ) return 1; return v11 && (unsigned __int8)isRelevantForPlayer(a1->m_player2, (__int64)a2); } return (unsigned __int8)isRelevantForPlayer(a1->m_player1, (__int64)a2) != 0; } if ( hasActiveDualTouch > v8 ) return 0; if ( m_twoPlayerMode > v8 ) { if ( *((_BYTE *)v3 + 236) ) return 0; goto LABEL_20; } if ( !*((_BYTE *)v3 + 236) ) goto LABEL_14; return (unsigned __int8)isRelevantForPlayer(a1->m_player1, (__int64)a2) != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source