From b242bfde178a69d6e1c35c4630e6496aa2c8f64b Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 13 Jul 2011 00:52:49 -0600 Subject: [PATCH] Dear Path.combine: Fuck you --- TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- TShockAPI/TShock.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index ed40f857..ad10961a 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.4.0712")] -[assembly: AssemblyFileVersion("2.3.4.0712")] +[assembly: AssemblyVersion("2.3.4.0713")] +[assembly: AssemblyFileVersion("2.3.4.0713")] diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 23b88d50..609495bc 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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();