From 18a4c5530d3f02fc9c2041e9029d5287beda5974 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 8 Feb 2023 00:10:38 -0600 Subject: [PATCH] feat(net): set os id in GruntLogin::GetLogonMethod --- src/net/login/GruntLogin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net/login/GruntLogin.cpp b/src/net/login/GruntLogin.cpp index df12947..2811a12 100644 --- a/src/net/login/GruntLogin.cpp +++ b/src/net/login/GruntLogin.cpp @@ -49,6 +49,12 @@ void GruntLogin::GetLogonMethod() { logon.version[2] = 5; logon.build = 12340; +#if defined(WHOA_SYSTEM_WIN) + logon.osID = '\0Win'; +#elif defined(WHOA_SYSTEM_MAC) + logon.osID = '\0OSX'; +#endif + // TODO if (this->IsReconnect()) {