mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Update CNetGame ctor
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
|
||||
#include "../main.h"
|
||||
|
||||
extern CChatWindow *pChatWindow;
|
||||
|
||||
CNetGame::CNetGame(PCHAR szHostOrIp, int iPort,
|
||||
PCHAR szPlayerName, PCHAR szPass)
|
||||
{
|
||||
@ -13,8 +15,13 @@ CNetGame::CNetGame(PCHAR szHostOrIp, int iPort,
|
||||
strncpy(m_szHostOrIp, szHostOrIp, sizeof(m_szHostOrIp));
|
||||
m_iPort = iPort;
|
||||
|
||||
m_pRakClient = RakNetworkFactory::GetRakClientInterface();
|
||||
|
||||
|
||||
m_iGameState = GAMESTATE_WAIT_CONNECT;
|
||||
|
||||
if(pChatWindow) pChatWindow->AddDebugMessage("{FFFFFF}SA-MP {B9C9BF}0.3.7-R5 {FFFFFF}Started");
|
||||
|
||||
// TODO: CNetGame::CNetGame(...) .text:1000B930
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,9 @@ struct struc_41
|
||||
class CNetGame // size: 994
|
||||
{
|
||||
private:
|
||||
int field_0;
|
||||
|
||||
RakClientInterface *m_pRakClient;
|
||||
|
||||
char _gap4[44];
|
||||
char m_szHostOrIp[257];
|
||||
char m_szHostName[257];
|
||||
|
Reference in New Issue
Block a user