// // GJBaseGameLayer::recordAction from 0x483c1c to 0x483ca2 (134 bytes) // // 1 xrefs: // > GJBaseGameLayer::handleButton @ 0x492e68 // // 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::recordAction(GJBaseGameLayer *a1, int a2, bool a3, bool a4) { std::vector *p_m_queuedRecordedButtons; // r5 RecordButtonCommand *m_finish; // r4 RecordButtonCommand *m_reserveEnd; // r3 int v10; // r1 int v11; // r2 int v12; // r3 _DWORD v13[4]; // [sp+4h] [bp-14h] BYREF if ( a1->m_recordInputs && !a1->m_useReplay ) { p_m_queuedRecordedButtons = &a1->m_queuedRecordedButtons; m_finish = a1->m_queuedRecordedButtons.m_finish; if ( (unsigned int)(m_finish - a1->m_queuedRecordedButtons.m_start) <= 0x1869F ) { memset(v13, a1->m_useReplay, sizeof(v13)); m_reserveEnd = p_m_queuedRecordedButtons->m_reserveEnd; v13[0] = a2; LOBYTE(v13[1]) = a3; BYTE1(v13[1]) = a4; if ( m_finish == m_reserveEnd ) { std::vector::_M_emplace_back_aux( (const void **)&p_m_queuedRecordedButtons->m_start, v13); } else { if ( m_finish ) { v10 = v13[1]; v11 = v13[2]; v12 = v13[3]; m_finish->m_button = v13[0]; *(_DWORD *)&m_finish->m_isPush = v10; m_finish->m_step = v11; m_finish->m_unk00c = v12; } p_m_queuedRecordedButtons->m_finish = m_finish + 1; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source