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

@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.4.0712")] [assembly: AssemblyVersion("2.3.4.0713")]
[assembly: AssemblyFileVersion("2.3.4.0712")] [assembly: AssemblyFileVersion("2.3.4.0713")]

View file

@ -95,14 +95,14 @@ namespace TShockAPI
public override void Initialize() 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(); p = Process.GetCurrentProcess();
int pid = p.Id; 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.Write(pid);
tw.Close(); tw.Close();