From 3c6628a812f74cfcf5a4a3dd46984092222d4bfc Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Fri, 4 Sep 2026 22:35:18 +0700 Subject: [PATCH] [saco] Implement/match `CChatWindow::ReleaseTextures` and the `FUNC_10067410` tail call into it, which is a bare 5-byte `jmp` --- saco/chatwindow.cpp | 27 +++++++++++++++++++++++++++ saco/chatwindow.h | 4 ++++ 2 files changed, 31 insertions(+) diff --git a/saco/chatwindow.cpp b/saco/chatwindow.cpp index df1c685..4a21c89 100644 --- a/saco/chatwindow.cpp +++ b/saco/chatwindow.cpp @@ -301,3 +301,30 @@ void CChatWindow::AddInfoMessage(CHAR * szFormat, ...) sub_10067BE0(4, szBuffer, 0, m_dwChatInfoColor, 0); } + +//---------------------------------------------------- + +void CChatWindow::ReleaseTextures() +{ + if(field_63BE) { + field_63BE->Release(); + field_63BE = NULL; + } + + if(field_63BA) { + field_63BA->Release(); + field_63BA = NULL; + } + + if(field_63B6) { + field_63B6->Release(); + field_63B6 = NULL; + } +} + +//---------------------------------------------------- + +void CChatWindow::FUNC_10067410() +{ + ReleaseTextures(); +} diff --git a/saco/chatwindow.h b/saco/chatwindow.h index 24db1fb..8288fac 100644 --- a/saco/chatwindow.h +++ b/saco/chatwindow.h @@ -61,6 +61,10 @@ public: void ReplaceControlChars(char *szString); // .text:10067420 + void ReleaseTextures(); // .text:100671A0 + + void FUNC_10067410(); // .text:10067410 + void FUNC_10067E00(); // .text:10067E00 void FUNC_10067ED0(); // .text:10067ED0