Explorar o código

Try to fix windows encoding

nordsoft %!s(int64=3) %!d(string=hai) anos
pai
achega
410c402dd6
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      launcher/lobby/lobby_moc.h

+ 4 - 0
launcher/lobby/lobby_moc.h

@@ -6,7 +6,11 @@
 #include <QAbstractSocket>
 
 const unsigned int ProtocolVersion = 1;
+#ifdef VCMI_WINDOWS
+const std::string ProtocolEncoding = "utf16";
+#else
 const std::string ProtocolEncoding = "utf8";
+#endif
 
 class ProtocolError: public std::runtime_error
 {