// // GJBaseGameLayer::processCommands from 0x140239c60 to 0x140239e19 (441 bytes) // // 2 xrefs: // > GJBaseGameLayer::update @ 0x140238090 // > @ 0x1406ce1d8 // // 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) { float v7; // xmm0_4 unsigned int m_commandIndex; // eax int m_unkUint6; // edx int v10; // ecx int v11; // eax unsigned int m_currentProgress; // eax unsigned int v13; // eax bool v14; // r8 std::_Vector_val>::pointer Myfirst; // r8 unsigned __int64 m_queuedRecordedButtonsSize; // rdx int v17; // r9d signed int m_pauseCounter; // ecx a1->m_gameState.m_unkUint4 = a1->m_gameState.m_commandIndex; if ( a2 > 0.0 ) { v7 = roundf(a1->m_gameState.m_timeWarp * 1000.0); m_commandIndex = a1->m_gameState.m_commandIndex; m_unkUint6 = a1->m_gameState.m_unkUint6; v10 = (int)v7; if ( a3 ) { a1->m_gameState.m_commandIndex = m_commandIndex + 1; v11 = (int)(float)((float)((float)v10 * 0.5) + (float)m_unkUint6); } else { a1->m_gameState.m_commandIndex = m_commandIndex + 2; v11 = m_unkUint6 + v10; } a1->m_gameState.m_unkUint6 = v11; } if ( !a1->m_playerDied ) { if ( a2 > 0.0 ) { m_currentProgress = a1->m_gameState.m_currentProgress; if ( a3 ) v13 = m_currentProgress + 1; else v13 = m_currentProgress + 2; a1->m_gameState.m_currentProgress = v13; } v14 = !a1->m_clickBetweenSteps && !a1->m_clickOnSteps || a4; GJBaseGameLayer::processQueuedButtons(a1, a2, v14); Myfirst = a1->m_queuedRecordedButtons._Mypair._Myval2._Myfirst; m_queuedRecordedButtonsSize = a1->m_queuedRecordedButtonsSize; if ( m_queuedRecordedButtonsSize < a1->m_queuedRecordedButtons._Mypair._Myval2._Mylast - Myfirst ) { v17 = a1->m_gameState.m_unkUint4 - a1->m_currentStep; a1->m_currentStep = a1->m_gameState.m_unkUint4; if ( m_queuedRecordedButtonsSize < a1->m_queuedRecordedButtons._Mypair._Myval2._Mylast - Myfirst ) { do { Myfirst[(int)m_queuedRecordedButtonsSize].m_step = v17; v17 = 0; LODWORD(m_queuedRecordedButtonsSize) = a1->m_queuedRecordedButtonsSize + 1; a1->m_queuedRecordedButtonsSize = m_queuedRecordedButtonsSize; Myfirst = a1->m_queuedRecordedButtons._Mypair._Myval2._Myfirst; } while ( (int)m_queuedRecordedButtonsSize < (unsigned __int64)(a1->m_queuedRecordedButtons._Mypair._Myval2._Mylast - Myfirst) ); } } } m_pauseCounter = a1->m_gameState.m_pauseCounter; if ( m_pauseCounter > 0 && (--a1->m_gameState.m_pauseBufferTimer & 0x80000000) != 0 ) { a1->m_gameState.m_pauseBufferTimer = 120; a1->m_gameState.m_pauseCounter = m_pauseCounter - 1; } }