diff options
| author | Andrew <alee14498@gmail.com> | 2018-08-29 15:13:00 -0400 |
|---|---|---|
| committer | Andrew <alee14498@gmail.com> | 2018-08-29 15:13:00 -0400 |
| commit | ba3ffab9cbe89d3f727494d6dd3cd8dafbb8d751 (patch) | |
| tree | f55d34df905a92fcc6a0724bae0c809a53ded078 | |
| parent | 5dcd089288e0b2d82f7b851f08daf4e11a60c1ce (diff) | |
| download | Project-Silicon-ba3ffab9cbe89d3f727494d6dd3cd8dafbb8d751.tar.gz Project-Silicon-ba3ffab9cbe89d3f727494d6dd3cd8dafbb8d751.tar.bz2 Project-Silicon-ba3ffab9cbe89d3f727494d6dd3cd8dafbb8d751.zip | |
A broken file system
| -rw-r--r-- | Project Ports/Desktop.Designer.cs | 2 | ||||
| -rw-r--r-- | Project Ports/MainMenu.cs | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index 49e64f4..7130dab 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -92,7 +92,7 @@ this.appMenu.Controls.Add(this.btnTerminal); this.appMenu.Controls.Add(this.lbPrograms); this.appMenu.ForeColor = System.Drawing.Color.Black; - this.appMenu.Location = new System.Drawing.Point(0, 38); + this.appMenu.Location = new System.Drawing.Point(0, 39); this.appMenu.Name = "appMenu"; this.appMenu.Size = new System.Drawing.Size(376, 429); this.appMenu.TabIndex = 3; 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); + } } |
