Path combine fail fixed for the auth code system.

This commit is contained in:
Lucas Nicodemus 2011-07-14 13:55:39 -06:00
parent 2469e293ab
commit f271d10c7b

View file

@ -295,7 +295,7 @@ namespace TShockAPI
Console.WriteLine("TShock Notice: To become SuperAdmin, join the game and type /auth " + AuthToken);
Console.WriteLine("This token will display until disabled by verification. (/auth-verify)");
Console.ForegroundColor = ConsoleColor.Gray;
FileTools.CreateFile(Path.Combine(SavePath + "authcode.txt"));
FileTools.CreateFile(Path.Combine(SavePath, "authcode.txt"));
TextWriter tw = new StreamWriter(Path.Combine(SavePath, "authcode.txt"));
tw.WriteLine(AuthToken);
tw.Close();