Adding Engine Version and Mod name/version checks to multiplayer handshake.

Incrementing protocol version as handshake messages have changed.
This commit is contained in:
Paul Robinson
2025-01-05 18:30:38 +01:00
committed by phosit
parent 60d388804a
commit 5b98a647dc
10 changed files with 204 additions and 20 deletions
+4
View File
@@ -22,6 +22,7 @@
#include "network/FSM.h"
#include "network/NetFileTransfer.h"
#include "network/NetHost.h"
#include "network/NetMessage.h"
#include "scriptinterface/Object.h"
#include "ps/CStr.h"
@@ -367,6 +368,9 @@ private:
/// Time when the server was last checked for timeouts and bad latency
std::time_t m_LastConnectionCheck;
/// Record of the server engine version and loaded mods
CSrvHandshakeMessage m_ServerHandshake;
};
/// Global network client for the standard game