This commit is contained in:
Filip Maj committed 2017-06-19 22:24:45 -04:00
commit 0c8642d6ab
5 files changed
+34 -6

No files matched your search

@@ -9,11 +9,25 @@ namespace FFXIVClassic_Map_Server.packets.WorldPackets.Receive
{
class SessionBeginPacket
{
public bool isLogin;
public bool invalidPacket = false;
public SessionBeginPacket(byte[] data)
{
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryReader binReader = new BinaryReader(mem))
{
try
{
isLogin = binReader.ReadByte() != 0;
}
catch (Exception)
{
invalidPacket = true;
}
}
}
}
}
}