diff --git a/include/Launcher.h b/include/Launcher.h index 58199a2..6ecf37a 100644 --- a/include/Launcher.h +++ b/include/Launcher.h @@ -55,6 +55,7 @@ class Launcher { const std::string& getPublicKey(); const std::string& getUserRole(); const std::string& getVersion(); + const std::string& getProtocolVersion(); static bool getExit() noexcept; private: // functions @@ -72,8 +73,9 @@ class Launcher { public: // variables static inline std::thread EntryThread{}; - static inline std::string Version{"2.1"}; - static inline std::string FullVersion{Version + ".1"}; + static inline std::string Version{"3.0"}; + static inline std::string FullVersion{Version + ".0"}; + static inline std::string ProtocolVersion{"2.0"}; private: // variables uint32_t GamePID{0}; diff --git a/src/Launcher.cpp b/src/Launcher.cpp index 2754fb9..277152a 100644 --- a/src/Launcher.cpp +++ b/src/Launcher.cpp @@ -276,6 +276,10 @@ const std::string& Launcher::getFullVersion() { return FullVersion; } +const std::string& Launcher::getProtocolVersion() { + return ProtocolVersion; +} + const std::string& Launcher::getVersion() { return Version; } diff --git a/src/Network/Resources.cpp b/src/Network/Resources.cpp index 8c5d529..b874e5b 100644 --- a/src/Network/Resources.cpp +++ b/src/Network/Resources.cpp @@ -45,7 +45,7 @@ void Server::Abort() { } std::string Server::Auth() { - TCPSend("VC" + LauncherInstance->getVersion()); + TCPSend("VC" + LauncherInstance->getProtocolVersion()); auto Res = TCPRcv();