From ba3ffab9cbe89d3f727494d6dd3cd8dafbb8d751 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 29 Aug 2018 15:13:00 -0400 Subject: A broken file system --- Project Ports/MainMenu.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project Ports/MainMenu.cs') diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs index ab5f1e8..8d24049 100644 --- a/Project Ports/MainMenu.cs +++ b/Project Ports/MainMenu.cs @@ -18,6 +18,7 @@ * **************************************************************************/ using System; +using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -74,6 +75,12 @@ namespace Project_Ports MessageBox.Show("You have set the build to \"Debug\". There are some features that is disabled in debug builds."); #endif portsVersion.Text = Properties.Settings.Default.version; + + string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); + string path = Path.Combine(appDataPath, @"\Roaming\UniverseDG\Project_Ports"); + if (!Directory.Exists(path)) + Directory.CreateDirectory(path); + } } -- cgit v1.2.3