Dear Path.combine: Fuck you

This commit is contained in:
Lucas Nicodemus 2011-07-13 00:52:49 -06:00
parent 9ffa0046e8
commit b242bfde17
2 changed files with 5 additions and 5 deletions

View file

@ -95,14 +95,14 @@ namespace TShockAPI
public override void Initialize()
{
if (File.Exists(Path.Combine(SavePath + "tshock.pid")))
if (File.Exists(Path.Combine(SavePath, "tshock.pid")))
{
File.Delete(Path.Combine(SavePath + "tshock.pid"));
File.Delete(Path.Combine(SavePath, "tshock.pid"));
}
p = Process.GetCurrentProcess();
int pid = p.Id;
TextWriter tw = new StreamWriter(Path.Combine(SavePath + "tshock.pid"));
TextWriter tw = new StreamWriter(Path.Combine(SavePath, "tshock.pid"));
tw.Write(pid);
tw.Close();