Dear Path.combine: Fuck you
This commit is contained in:
parent
9ffa0046e8
commit
b242bfde17
2 changed files with 5 additions and 5 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue