aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/AuthSocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/trinityrealm/AuthSocket.h')
-rw-r--r--src/trinityrealm/AuthSocket.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/trinityrealm/AuthSocket.h b/src/trinityrealm/AuthSocket.h
index b58f1d79eec..ab9c2cf3da9 100644
--- a/src/trinityrealm/AuthSocket.h
+++ b/src/trinityrealm/AuthSocket.h
@@ -33,6 +33,7 @@
#include "sockets/Utility.h"
#include "sockets/Parse.h"
#include "sockets/Socket.h"
+#include "zthread/Mutex.h"
/// Handle login commands
class AuthSocket: public TcpSocket
@@ -58,6 +59,7 @@ class AuthSocket: public TcpSocket
void _SetVSFields(std::string rI);
FILE *pPatch;
+ ZThread::Mutex patcherLock;
bool IsLag();
private:
@@ -70,7 +72,12 @@ class AuthSocket: public TcpSocket
std::string _login;
std::string _safelogin;
- uint8 _localization;
+
+
+ // Since GetLocaleByName() is _NOT_ bijective, we have to store the locale as a string. Otherwise we can't differ
+ // between enUS and enGB, which is important for the patch system
+ std::string _localizationName;
+ uint16 _build;
AccountTypes _accountSecurityLevel;
};
#endif