PROJECT: added common library to make common files actually common

- renamed sln to FFXIVClassic.sln
- threaded logging
- todo: print packets using Log.Packet
This commit is contained in:
Tahir Akhlaq 2016-06-12 20:12:59 +01:00
parent 16d4779970
commit c23f9c7ca9
53 changed files with 547 additions and 1817 deletions

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using System;
using System.IO;
using System.Linq;

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using System;
using System.IO;
using System.Linq;

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using System.IO;
namespace FFXIVClassic_Map_Server.packets.send.player
@ -36,7 +36,7 @@ namespace FFXIVClassic_Map_Server.packets.send.player
if (binStream.Length <= PACKET_SIZE - 0x20)
binWriter.Write(binStream);
else
Log.Error("Failed making SetCompletedAchievements packet. Bin Stream was too big!");
Program.Log.Error("Failed making SetCompletedAchievements packet. Bin Stream was too big!");
}
}

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using System;
using System.IO;
using System.Text;
@ -81,7 +81,7 @@ namespace FFXIVClassic_Map_Server.packets.send.player
if (binStream.Length <= PACKET_SIZE - 0x20)
binWriter.Write(binStream);
else
Log.Error("Failed making SetCutsceneBook packet. Bin Stream was too big!");
Program.Log.Error("Failed making SetCutsceneBook packet. Bin Stream was too big!");
binWriter.Seek(0x109, SeekOrigin.Begin);
binWriter.Write(Encoding.ASCII.GetBytes(sNpcName), 0, Encoding.ASCII.GetByteCount(sNpcName) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(sNpcName));