diff options
| author | lempamo <[email protected]> | 2017-08-09 18:02:34 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-08-09 18:02:34 -0400 |
| commit | b3c84489d5597811822099220dbe28f57b62a9a8 (patch) | |
| tree | e1dd64df535f7fdbc2d9ad25a9fb13642a7a5bd3 /TimeHACK.Engine/SaveSystem.cs | |
| parent | 1d56f20e085a041c007fb7ac1fd64c7b8aabfa0f (diff) | |
| download | histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.tar.gz histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.tar.bz2 histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.zip | |
time distorter 0.1 up and running
Diffstat (limited to 'TimeHACK.Engine/SaveSystem.cs')
| -rw-r--r-- | TimeHACK.Engine/SaveSystem.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs index 5700687..0b915f3 100644 --- a/TimeHACK.Engine/SaveSystem.cs +++ b/TimeHACK.Engine/SaveSystem.cs @@ -254,6 +254,15 @@ namespace TimeHACK.Engine // There is no "The Microsoft Network" folder! if (Directory.Exists(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"))) Directory.Delete(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"), true); + FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(ProfileProgramsDirectory, "_data.info"))); + foreach (THDirInfo dir in fsfi.SubDirs) + { + if (dir.Name == "The Microsoft Network") + { + fsfi.SubDirs.Remove(dir); + break; + } + } } break; } |
