added MySQL support

fixed login bug
IW3 official support
This commit is contained in:
RaidMax
2018-04-25 01:38:59 -05:00
parent 0e3d280595
commit ece519251a
18 changed files with 63 additions and 463 deletions

View File

@ -130,6 +130,7 @@ namespace SharedLibraryCore.RCon
#if DEBUG
Log.WriteDebug($"Received {bytesRead} bytes from {ServerConnection.RemoteEndPoint}");
#endif
FailedReceives = 0;
connectionState.ResponseString.Append(Utilities.EncodingType.GetString(connectionState.Buffer, 0, bytesRead).TrimEnd('\0') + '\n');
if (!connectionState.Buffer.Take(4).ToArray().SequenceEqual(new byte[] { 0xFF, 0xFF, 0xFF, 0xFF }))