diff options
| author | Alee14 <alee14498@gmail.com> | 2018-09-01 19:07:41 -0400 |
|---|---|---|
| committer | Alee14 <alee14498@gmail.com> | 2018-09-01 19:07:41 -0400 |
| commit | 8d85f6b8a2e1a15ff9ac8e0443bba9027afcd206 (patch) | |
| tree | 84dc3e098295330cda4733b3de8201954eff88f3 /Project Ports/MainMenu.cs | |
| parent | 56cb0866c40c97d7dc50e6e2a339c1b957347010 (diff) | |
| download | Project-Silicon-8d85f6b8a2e1a15ff9ac8e0443bba9027afcd206.tar.gz Project-Silicon-8d85f6b8a2e1a15ff9ac8e0443bba9027afcd206.tar.bz2 Project-Silicon-8d85f6b8a2e1a15ff9ac8e0443bba9027afcd206.zip | |
moved the create directory to file system class
Diffstat (limited to 'Project Ports/MainMenu.cs')
| -rw-r--r-- | Project Ports/MainMenu.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs index d97a672..bafcc22 100644 --- a/Project Ports/MainMenu.cs +++ b/Project Ports/MainMenu.cs @@ -76,10 +76,7 @@ namespace Project_Ports #endif portsVersion.Text = Properties.Settings.Default.version; - string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); - string path = Path.Combine(appDataPath, "Project Ports"); - if (!Directory.Exists(path)) - Directory.CreateDirectory(path); + FileSystem.CreateDataFolder(); } } |
