From ccc96dacfc7181736385206360aaa3752e00b4ca Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 18 Jul 2026 15:10:47 +0700 Subject: [PATCH] [saco] Implement/match `cmdTimestamp` --- saco/chatwindow.h | 6 +++--- saco/cmdprocs.cpp | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/saco/chatwindow.h b/saco/chatwindow.h index aa95fff..3095eae 100644 --- a/saco/chatwindow.h +++ b/saco/chatwindow.h @@ -12,12 +12,12 @@ typedef struct _CHAT_WINDOW_ENTRY class CChatWindow // size: 25578 { -private: +public: int field_0; char _gap4[4]; int field_8; - char field_C; + char m_bTimestamp; int field_D; char field_11[261]; CDXUTDialog *m_pGameUI; @@ -39,7 +39,7 @@ private: D3DDISPLAYMODE field_63C2; DWORD field_63D2; int field_63D6; - int field_63DA; + int m_bRedraw; int field_63DE; int field_63E2; char _gap63E6[4]; diff --git a/saco/cmdprocs.cpp b/saco/cmdprocs.cpp index c85fbe8..df84785 100644 --- a/saco/cmdprocs.cpp +++ b/saco/cmdprocs.cpp @@ -68,7 +68,22 @@ void cmdNameTagStatus(PCHAR szCmd) void cmdTimestamp(PCHAR szCmd) { - // TODO: cmdTimestamp .text:10068730 + CChatWindow *pChatWindow = ::pChatWindow; + if(pChatWindow) + { + if(pChatWindow->m_bTimestamp) + { + pChatWindow->m_bTimestamp = 0; + pChatWindow->m_bRedraw = 1; + if(pConfig) pConfig->SetIntVariable("timestamp", 0); + } + else + { + pChatWindow->m_bTimestamp = 1; + pChatWindow->m_bRedraw = 1; + if(pConfig) pConfig->SetIntVariable("timestamp", 1); + } + } } void cmdAudioMsg(PCHAR szCmd)