// // GJBaseGameLayer::processCommands from 0x88caa0 to 0x88cc40 (416 bytes) // // 2 xrefs: // > GJBaseGameLayer::update @ 0x89de6c // > @ 0x70aa0 // // 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::processCommands(GJBaseGameLayer *a1, float a2, bool a3, bool a4) { _BOOL4 v4; // w5 unsigned int m_commandIndex; // w4 int v8; // w0 unsigned int m_unkUint6; // w2 float *v10; // x3 float v11; // s1 _BOOL4 m_playerDied; // w2 int m_queuedRecordedButtonsSize; // w5 RecordButtonCommand *m_start; // x0 RecordButtonCommand *m_finish; // x2 unsigned __int64 v16; // x4 signed int m_pauseCounter; // w1 signed int v18; // w0 int v19; // w2 int m_unkUint4; // w1 RecordButtonCommand *v21; // x0 int m_currentStep; // w6 int v23; // w1 v4 = a3; m_commandIndex = a1->m_gameState.m_commandIndex; a1->m_gameState.m_unkUint4 = m_commandIndex; if ( a2 <= 0.0 ) { v10 = &a1->m_varianceValues.__elems_[1975]; if ( a1->m_playerDied ) goto LABEL_10; if ( a2 <= 0.0 ) { LABEL_5: if ( !*((_BYTE *)v10 + 1913) ) goto LABEL_6; goto LABEL_8; } if ( v4 ) { LABEL_4: ++a1->m_gameState.m_currentProgress; goto LABEL_5; } a1->m_gameState.m_currentProgress += 2; } else { v8 = llroundf(a1->m_gameState.m_timeWarp * 1000.0); if ( v4 ) { m_unkUint6 = a1->m_gameState.m_unkUint6; v10 = &a1->m_varianceValues.__elems_[1975]; a1->m_gameState.m_commandIndex = m_commandIndex + 1; v11 = (float)m_unkUint6; m_playerDied = a1->m_playerDied; a1->m_gameState.m_unkUint6 = (unsigned int)(float)(v11 + (float)((float)v8 * 0.5)); if ( m_playerDied ) goto LABEL_10; goto LABEL_4; } v19 = a1->m_gameState.m_unkUint6; v10 = &a1->m_varianceValues.__elems_[1975]; a1->m_gameState.m_commandIndex = m_commandIndex + 2; a1->m_gameState.m_unkUint6 = v19 + v8; if ( a1->m_playerDied ) goto LABEL_10; a1->m_gameState.m_currentProgress += 2; } if ( !*((_BYTE *)v10 + 1913) ) { LABEL_6: if ( !*((_BYTE *)v10 + 1914) ) a4 = 1; } LABEL_8: GJBaseGameLayer::processQueuedButtons(a1, a2, a4); m_queuedRecordedButtonsSize = a1->m_queuedRecordedButtonsSize; m_start = a1->m_queuedRecordedButtons.m_start; m_finish = a1->m_queuedRecordedButtons.m_finish; v16 = m_finish - m_start; if ( m_queuedRecordedButtonsSize < v16 ) { m_unkUint4 = a1->m_gameState.m_unkUint4; v21 = &m_start[m_queuedRecordedButtonsSize]; m_currentStep = a1->m_currentStep; a1->m_currentStep = m_unkUint4; v23 = m_unkUint4 - m_currentStep; do { v21->m_step = v23; ++v21; v23 = 0; } while ( v21 != m_finish ); a1->m_queuedRecordedButtonsSize = m_queuedRecordedButtonsSize + 1 + v16 + ~m_queuedRecordedButtonsSize; } GJBaseGameLayer::updateReplay(a1); LABEL_10: m_pauseCounter = a1->m_gameState.m_pauseCounter; if ( m_pauseCounter > 0 ) { v18 = a1->m_gameState.m_pauseBufferTimer - 1; if ( v18 < 0 ) { a1->m_gameState.m_pauseCounter = m_pauseCounter - 1; a1->m_gameState.m_pauseBufferTimer = 120; } else { a1->m_gameState.m_pauseBufferTimer = v18; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source