aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/TitleScreen.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/TitleScreen.cs')
-rw-r--r--TimeHACK.Main/TitleScreen.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs
index a5cdade..0e39eac 100644
--- a/TimeHACK.Main/TitleScreen.cs
+++ b/TimeHACK.Main/TitleScreen.cs
@@ -1,6 +1,7 @@
using TimeHACK.Properties;
using System;
using System.Drawing;
+using System.IO;
using System.Windows.Forms;
using TimeHACK.OS.Win95;
using TimeHACK.Engine;
@@ -14,9 +15,18 @@ namespace TimeHACK
public static string username;
public static string progress = "95";
+ public static DirectoryInfo thfolder;
+ public static DirectoryInfo datafolder;
+ public static DirectoryInfo profilefolder;
+
public TitleScreen()
{
InitializeComponent();
+ if (!Directory.Exists("C:\\TimeHackData")) thfolder = Directory.CreateDirectory("C:\\TimeHackData");
+ else thfolder = new DirectoryInfo("C:\\TimeHackData");
+ datafolder = Directory.CreateDirectory(thfolder.FullName + "\\Data");
+ Resources.google.Save(datafolder.FullName + "\\google.jpg");
+ profilefolder = Directory.CreateDirectory(thfolder.FullName + "\\Profiles");
}
private void closebutton_Click(object sender, EventArgs e)