diff --git a/saco/cmdwindow.cpp b/saco/cmdwindow.cpp index d08750b..757c763 100644 --- a/saco/cmdwindow.cpp +++ b/saco/cmdwindow.cpp @@ -1,7 +1,16 @@ -#include "cmdwindow.h" +#include "main.h" CCmdWindow::CCmdWindow() { // TODO: CCmdWindow::CCmdWindow() .text:100693D0 } + +//---------------------------------------------------- + +void CCmdWindow::AddDefaultCmdProc(CMDPROC cmdDefault) +{ + m_pDefaultCmd = cmdDefault; +} + +//---------------------------------------------------- diff --git a/saco/cmdwindow.h b/saco/cmdwindow.h index a638ea1..446493d 100644 --- a/saco/cmdwindow.h +++ b/saco/cmdwindow.h @@ -1,11 +1,20 @@ #pragma once +typedef void (__cdecl *CMDPROC)(PCHAR); + class CCmdWindow // size: 6908 { private: char _gap0[6908]; public: + + CMDPROC m_pDefaultCmd; // used when no command specifier was + // used (ie. a normal chat message) + + CCmdWindow(); + + void AddDefaultCmdProc(CMDPROC cmdDefault); };