2023-11-14 22:58:51 +08:00
|
|
|
|
2024-02-02 22:47:18 +08:00
|
|
|
#include "main.h"
|
2023-11-14 22:58:51 +08:00
|
|
|
|
|
|
|
CCmdWindow::CCmdWindow()
|
|
|
|
{
|
|
|
|
// TODO: CCmdWindow::CCmdWindow() .text:100693D0
|
|
|
|
}
|
2024-02-02 22:47:18 +08:00
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
void CCmdWindow::AddDefaultCmdProc(CMDPROC cmdDefault)
|
|
|
|
{
|
|
|
|
m_pDefaultCmd = cmdDefault;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
2024-02-02 22:47:51 +08:00
|
|
|
|
|
|
|
void CCmdWindow::AddCmdProc(PCHAR szCmdName, CMDPROC cmdHandler)
|
|
|
|
{
|
|
|
|
if(m_iCmdCount < MAX_CMDS && (strlen(szCmdName) < MAX_CMD_STRLEN)) {
|
|
|
|
m_pCmds[m_iCmdCount] = cmdHandler;
|
|
|
|
strcpy(m_szCmdNames[m_iCmdCount],szCmdName);
|
|
|
|
m_iCmdCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|