[saco] Update CNetGame constructor

This commit is contained in:
RD42 committed 2023-11-23 23:56:11 +08:00
1 parent 890e3a92a5
commit 7fe0cca7de
2 files changed
+22 -6

No files matched your search

+14 -2
View File
@@ -1,7 +1,19 @@
#include "netgame.h"
#include "../main.h"
CNetGame::CNetGame(char *a2, int a3, char *a4, char *a5)
CNetGame::CNetGame(PCHAR szHostOrIp, int iPort,
PCHAR szPlayerName, PCHAR szPass)
{
field_3D5 = (struc_41*)calloc(1,sizeof(struc_41));
memset(m_szHostName,0,256);
memset(m_szHostOrIp,0,256);
strcpy(m_szHostName, "SA-MP");
strncpy(m_szHostOrIp, szHostOrIp, sizeof(m_szHostOrIp));
m_iPort = iPort;
m_iGameState = GAMESTATE_WAIT_CONNECT;
// TODO: CNetGame::CNetGame(...) .text:1000B930
}