diff options
| author | Alee14 <alee14498@gmail.com> | 2018-09-01 21:53:17 -0400 |
|---|---|---|
| committer | Alee14 <alee14498@gmail.com> | 2018-09-01 21:53:17 -0400 |
| commit | 71fc0fa9c881d85eb8bb4037c6415cf893914e6f (patch) | |
| tree | 5ea34e1d2cf4f74e4dbfb4288477dc17a4262995 /PortEngine/FileSystem.cs | |
| parent | 90842f1dd54add22e8c96f06d9e10607af398774 (diff) | |
| download | Project-Silicon-71fc0fa9c881d85eb8bb4037c6415cf893914e6f.tar.gz Project-Silicon-71fc0fa9c881d85eb8bb4037c6415cf893914e6f.tar.bz2 Project-Silicon-71fc0fa9c881d85eb8bb4037c6415cf893914e6f.zip | |
more file system stuff
Diffstat (limited to 'PortEngine/FileSystem.cs')
| -rw-r--r-- | PortEngine/FileSystem.cs | 56 |
1 files changed, 49 insertions, 7 deletions
diff --git a/PortEngine/FileSystem.cs b/PortEngine/FileSystem.cs index af81225..4182785 100644 --- a/PortEngine/FileSystem.cs +++ b/PortEngine/FileSystem.cs @@ -28,20 +28,62 @@ namespace PortEngine { public class FileSystem { - public static string appDataFolder + public static string universedgFolder { get { - return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Project Ports"); + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "UniverseDG"); + } + } + public static string portsFolder + { + get + { + return Path.Combine(universedgFolder, "Project Ports"); + } + } + public static string dataFolder + { + get + { + return Path.Combine(portsFolder, "Data"); + } + } + public static string homeFolder + { + get + { + return Path.Combine(dataFolder, "home"); + } + } + public static string logsFolder + { + get + { + return Path.Combine(dataFolder, "logs"); + } + } + public static string sysFolder + { + get + { + return Path.Combine(dataFolder, "sys"); } } - public static void CreateDataFolder() - { - if (!Directory.Exists(appDataFolder)) - Directory.CreateDirectory(appDataFolder); + public static void CreateGameFolder() + { + Directory.CreateDirectory(universedgFolder); + Directory.CreateDirectory(portsFolder); + Directory.CreateDirectory(dataFolder); + Directory.CreateDirectory(homeFolder); + Directory.CreateDirectory(logsFolder); + Directory.CreateDirectory(sysFolder); } - + } + } + + |
