Dear Path.combine: Fuck you
This commit is contained in:
parent
9ffa0046e8
commit
b242bfde17
2 changed files with 5 additions and 5 deletions
|
|
@ -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