mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Update CCmdWindow constructor
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user