Fixed packet ByteArrayToHex output

This commit is contained in:
deviltti 2016-06-10 22:40:46 -04:00
parent 554c8b5514
commit 16d4779970
4 changed files with 29 additions and 25 deletions

View file

@ -147,12 +147,12 @@ namespace FFXIVClassic_Map_Server.packets
if (header.type == 0x03)
{
Log.Debug(String.Format("Opcode: 0x{0:X}{1}{2}", gameMessage.opcode, Environment.NewLine, Utils.ByteArrayToHex(getGameMessageBytes(), SUBPACKET_SIZE)));
Console.BackgroundColor = ConsoleColor.DarkMagenta;
Log.Debug(String.Format("Data: {0}{1}", Environment.NewLine, Utils.ByteArrayToHex(data, SUBPACKET_SIZE + GAMEMESSAGE_SIZE)));
}
Console.BackgroundColor = ConsoleColor.DarkMagenta;
Log.Debug(String.Format("Data: {0}{1}", Environment.NewLine, Utils.ByteArrayToHex(data, SUBPACKET_SIZE + GAMEMESSAGE_SIZE)));
Console.BackgroundColor = ConsoleColor.Black;
#endif
}