[saco] Update CCmdWindow constructor

This commit is contained in:
RD42
2024-03-20 23:43:00 +08:00
parent 79572bb0f8
commit 7aab86cc96
3 changed files with 31 additions and 2 deletions

View File

@ -1,7 +1,24 @@
#include "main.h"
CCmdWindow::CCmdWindow()
//----------------------------------------------------
CCmdWindow::CCmdWindow(IDirect3DDevice9 *pD3DDevice)
{
m_pD3DDevice = pD3DDevice;
field_14E0 = 0;
m_iCmdCount = 0;
field_1AF4 = 0;
field_8 = 0;
field_1AF0 = 0;
memset(&field_1565[0],0,1290);
memset(&field_14E4[0],0,129);
memset(&field_1A6F[0],0,129);
}
//----------------------------------------------------
{
// TODO: CCmdWindow::CCmdWindow() .text:100693D0
}

View File

@ -10,17 +10,28 @@ class CCmdWindow // size: 6908
{
private:
IDirect3DDevice9 *m_pD3DDevice;
int field_4;
int field_8;
public:
CMDPROC m_pCmds[MAX_CMDS];
CHAR m_szCmdNames[MAX_CMDS][MAX_CMD_STRLEN+1];
int m_iCmdCount;
int field_14E0;
char field_14E4[129];
char field_1565[1290];
char field_1A6F[129];
int field_1AF0;
int field_1AF4;
CMDPROC m_pDefaultCmd; // used when no command specifier was
// used (ie. a normal chat message)
CCmdWindow();
CCmdWindow(IDirect3DDevice9 *pD3DDevice);
void AddDefaultCmdProc(CMDPROC cmdDefault);
void AddCmdProc(PCHAR szCmdName, CMDPROC cmdHandler);

View File

@ -331,6 +331,7 @@ void DoInitStuff()
// Create instances of the chat and input classes.
pDefaultFont = new CFontRender(pD3DDevice);
pChatWindow = new CChatWindow(pD3DDevice,pDefaultFont,szChatLogFile);
pCmdWindow = new CCmdWindow(pD3DDevice);