aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-09 18:02:34 -0400
committerlempamo <[email protected]>2017-08-09 18:02:34 -0400
commitb3c84489d5597811822099220dbe28f57b62a9a8 (patch)
treee1dd64df535f7fdbc2d9ad25a9fb13642a7a5bd3 /TimeHACK.Engine
parent1d56f20e085a041c007fb7ac1fd64c7b8aabfa0f (diff)
downloadhistacom2-b3c84489d5597811822099220dbe28f57b62a9a8.tar.gz
histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.tar.bz2
histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.zip
time distorter 0.1 up and running
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/SaveSystem.cs9
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;
}