Resetting back to pre fuckup.
This commit is contained in:
parent
1d91e6138e
commit
9a28810ce2
7 changed files with 16 additions and 10 deletions
|
|
@ -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...");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue