Resetting back to pre fuckup.

This commit is contained in:
Lucas Nicodemus 2011-07-13 02:39:32 -06:00
parent 1d91e6138e
commit 9a28810ce2
7 changed files with 16 additions and 10 deletions

View file

@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* Microsoft Visual Studio 2010
* HostPenda
* And you, for your continued support and devotion to the evolution of TShock
* Kerplunc Gaming
* TerrariaGSP
*/
using System;
using System.Collections.Generic;
@ -95,6 +97,10 @@ namespace TShockAPI
public override void Initialize()
{
if (!Directory.Exists(SavePath))
{
Directory.CreateDirectory(SavePath);
}
if (File.Exists(Path.Combine(SavePath, "tshock.pid")))
{
Log.ConsoleInfo("TShock was improperly shut down. Deleting invalid pid file...");