mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot/saco/server] Update CNetGame constructor
This commit is contained in:
parent
d1451f9529
commit
ae590d171c
@ -1,5 +1,6 @@
|
||||
|
||||
#include "../main.h"
|
||||
#include "../../raknet/SocketDataEncryptor.h"
|
||||
|
||||
char unnamed_2[63];
|
||||
char unnamed_5[1000][24];
|
||||
@ -52,6 +53,8 @@ void CNetGame::Init(PCHAR szHostOrIp, int iPort,
|
||||
|
||||
m_pRakClient = RakNetworkFactory::GetRakClientInterface();
|
||||
|
||||
SocketDataEncryptor::SetKey(iPort);
|
||||
|
||||
RegisterRPCs(m_pRakClient);
|
||||
RegisterScriptRPCs(m_pRakClient);
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#include "../main.h"
|
||||
#include "../../raknet/SocketDataEncryptor.h"
|
||||
|
||||
extern CGame *pGame;
|
||||
extern CChatWindow *pChatWindow;
|
||||
@ -48,6 +49,8 @@ CNetGame::CNetGame(PCHAR szHostOrIp, int iPort,
|
||||
|
||||
InitPools();
|
||||
|
||||
SocketDataEncryptor::SetKey(iPort);
|
||||
|
||||
RegisterRPCs(m_pRakClient);
|
||||
RegisterScriptRPCs(m_pRakClient); // Register server-side scripting RPCs.
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#include "main.h"
|
||||
#include "../raknet/SocketDataEncryptor.h"
|
||||
|
||||
int CanFileBeOpenedForReading(char * filename);
|
||||
|
||||
@ -65,7 +66,7 @@ CNetGame::CNetGame()
|
||||
// Setup RakNet
|
||||
m_pRak = RakNetworkFactory::GetRakServerInterface();
|
||||
|
||||
|
||||
SocketDataEncryptor::SetKey(dwPort);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user