// // GJBaseGameLayer::recordAction from 0x10014b570 to 0x10014b6ca (346 bytes) // // 1 xrefs: // > GJBaseGameLayer::handleButton @ 0x10014ad65 // // 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::recordAction(GJBaseGameLayer *a1, int a2, bool a3, bool a4) { std::__vector_base::pointer begin; // rbx std::__vector_base::pointer end; // r13 size_t v6; // r14 unsigned __int64 v7; // rax RecordButtonCommand *value; // r8 RecordButtonCommand *v9; // r13 unsigned __int64 v10; // rax __int64 v11; // r8 __int64 v12; // rcx unsigned __int64 v13; // r15 size_t v14; // r15 RecordButtonCommand *v15; // r12 if ( a1->m_recordInputs && !a1->m_useReplay ) { begin = a1->m_queuedRecordedButtons.__begin_; end = a1->m_queuedRecordedButtons.__end_; v6 = (char *)end - (char *)begin; v7 = end - begin; if ( v7 <= 0x1869F ) { value = a1->m_queuedRecordedButtons.__end_cap_.__value_; if ( end >= value ) { v10 = v7 + 1; v11 = (char *)value - (char *)begin; v12 = v11 >> 3; if ( v11 >> 3 <= v10 ) v12 = v10; v13 = 0xFFFFFFFFFFFFFFFLL; if ( (unsigned __int64)v11 < 0x7FFFFFFFFFFFFFF0LL ) v13 = v12; if ( v13 >> 60 ) sub_100054850(); v14 = v13; v15 = (RecordButtonCommand *)operator new(v14 * 16); *(PlayerButton *)((char *)&v15->m_button + v6) = a2; *(&v15->m_isPush + v6) = a3; *(&v15->m_isPlayer2 + v6) = a4; *(_WORD *)(&v15->m_isPlayer2 + v6 + 1) = 0; *(_QWORD *)((char *)&v15->m_step + v6) = 0; v9 = (RecordButtonCommand *)((char *)v15 + v6 + 16); memcpy(v15, begin, v6); a1->m_queuedRecordedButtons.__begin_ = v15; a1->m_queuedRecordedButtons.__end_ = v9; a1->m_queuedRecordedButtons.__end_cap_.__value_ = &v15[v14]; if ( begin ) operator delete(begin); } else { end->m_button = a2; end->m_isPush = a3; end->m_isPlayer2 = a4; *(_WORD *)(&end->m_isPlayer2 + 1) = 0; *(_QWORD *)&end->m_step = 0; v9 = end + 1; } a1->m_queuedRecordedButtons.__end_ = v9; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source