[saco] Implement/match cmdTimestamp

This commit is contained in:
ricardoofnl
2026-07-18 15:10:47 +07:00
parent 187e3bceb2
commit ccc96dacfc
2 changed files with 19 additions and 4 deletions
+3 -3
View File
@@ -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];
+16 -1
View File
@@ -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)