From 78d6d9352f66f41963207b04a999d94c17d67cf2 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 11 Feb 2024 21:39:51 +0100 Subject: Added support for -y / --server-type parameter Usually this would be guessed correctly by the port, but now it is also possible to just specify the server type and the port will be derived from there, unless a default port is given in the branding file. Closes #56 --- src/client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index fe202ccc..ccee43ba 100644 --- a/src/client.h +++ b/src/client.h @@ -145,9 +145,10 @@ public: std::string configDir; std::string localDataDir; std::string screenshotDir; + std::string serverType; std::string serverName; - short serverPort = 0; + uint16_t serverPort = 0; }; Client(const Options &options); -- cgit v1.2.3-60-g2f50