// // GJBaseGameLayer::processCommands from 0x1001ff4f8 to 0x1001ff64c (340 bytes) // // 1 xrefs: // > GJBaseGameLayer::update @ 0x1001fe9d4 // // 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::processCommands(GJBaseGameLayer *a1, float a2, bool a3, bool a4) { unsigned int m_commandIndex; // w9 int v6; // w10 int v7; // w9 unsigned __int64 m_queuedRecordedButtonsSize; // x8 std::__vector_base::pointer begin; // x10 unsigned __int64 v10; // x9 int m_unkUint4; // w11 int m_currentStep; // w12 int v13; // w11 int *p_m_step; // x10 unsigned int m_pauseCounter; // w8 bool v16; // vf signed int v17; // w8 signed int m_pauseBufferTimer; // w9 m_commandIndex = a1->m_gameState.m_commandIndex; a1->m_gameState.m_unkUint4 = m_commandIndex; if ( a2 <= 0.0 ) { if ( a1->m_playerDied ) goto LABEL_18; goto LABEL_11; } v6 = llroundf(a1->m_gameState.m_timeWarp * 1000.0); if ( !a3 ) { a1->m_gameState.m_commandIndex = m_commandIndex + 2; a1->m_gameState.m_unkUint6 += v6; if ( a1->m_playerDied ) goto LABEL_18; goto LABEL_9; } a1->m_gameState.m_commandIndex = m_commandIndex + 1; a1->m_gameState.m_unkUint6 = (unsigned int)(float)((float)(unsigned int)a1->m_gameState.m_unkUint6 + (float)((float)v6 * 0.5)); if ( a1->m_playerDied ) goto LABEL_18; if ( !a3 ) { LABEL_9: v7 = 2; goto LABEL_10; } v7 = 1; LABEL_10: a1->m_gameState.m_currentProgress += v7; LABEL_11: if ( !a1->m_clickBetweenSteps && !a1->m_clickOnSteps ) a4 = 1; GJBaseGameLayer::processQueuedButtons(a1, a2, a4); m_queuedRecordedButtonsSize = a1->m_queuedRecordedButtonsSize; begin = a1->m_queuedRecordedButtons.__begin_; v10 = a1->m_queuedRecordedButtons.__end_ - begin; if ( v10 > m_queuedRecordedButtonsSize ) { m_unkUint4 = a1->m_gameState.m_unkUint4; m_currentStep = a1->m_currentStep; a1->m_currentStep = m_unkUint4; v13 = m_unkUint4 - m_currentStep; p_m_step = &begin[m_queuedRecordedButtonsSize].m_step; do { *p_m_step = v13; p_m_step += 4; ++m_queuedRecordedButtonsSize; v13 = 0; } while ( v10 > m_queuedRecordedButtonsSize ); a1->m_queuedRecordedButtonsSize = m_queuedRecordedButtonsSize; } LABEL_18: m_pauseCounter = a1->m_gameState.m_pauseCounter; v16 = __OFSUB__(m_pauseCounter, 1); v17 = m_pauseCounter - 1; if ( v17 < 0 == v16 ) { m_pauseBufferTimer = a1->m_gameState.m_pauseBufferTimer; a1->m_gameState.m_pauseBufferTimer = m_pauseBufferTimer - 1; if ( m_pauseBufferTimer <= 0 ) { a1->m_gameState.m_pauseBufferTimer = 120; a1->m_gameState.m_pauseCounter = v17; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source