From aaf2960c693b8a555cc0e228132e11227aa65281 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 20 May 2017 13:35:34 +0100 Subject: Make a minor adjustment to my SaveSystem! --- TimeHACK.Main/SaveDialogs/NewGameDialog.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'TimeHACK.Main/SaveDialogs') diff --git a/TimeHACK.Main/SaveDialogs/NewGameDialog.cs b/TimeHACK.Main/SaveDialogs/NewGameDialog.cs index 227edfd..20895cb 100644 --- a/TimeHACK.Main/SaveDialogs/NewGameDialog.cs +++ b/TimeHACK.Main/SaveDialogs/NewGameDialog.cs @@ -47,12 +47,14 @@ namespace TimeHACK { ProfileName = txtProfName.Text; if (DevMode == true) + { if (Directory.Exists(ProfileDirectory)) { Directory.Delete(ProfileDirectory, true); Successful = true; this.Close(); } + } if (!Directory.Exists(ProfileDirectory)) { -- cgit v1.2.3