aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-22 09:27:28 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-22 09:27:28 +0100
commiteca20f542d9b604f95f060d92028c4fd4ee173a6 (patch)
treea3e98889f7f783e87948ba330ec9b43363cff8fc /TimeHACK.Engine
parentc7266b653bc1ae99a7e11607a474195789f094ad (diff)
downloadhistacom2-eca20f542d9b604f95f060d92028c4fd4ee173a6.tar.gz
histacom2-eca20f542d9b604f95f060d92028c4fd4ee173a6.tar.bz2
histacom2-eca20f542d9b604f95f060d92028c4fd4ee173a6.zip
Made 95 explorer seperate from 98/2000/ME
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/SaveSystem.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs
index 0cacf69..f8cc662 100644
--- a/TimeHACK.Engine/SaveSystem.cs
+++ b/TimeHACK.Engine/SaveSystem.cs
@@ -200,6 +200,24 @@ namespace TimeHACK.Engine
File.WriteAllText(filepath, contents);
}
+ public static void UpgradeFileSystem(string oldOS, string newOS)
+ {
+ switch (oldOS)
+ {
+ case "95":
+ if (newOS == "98" || newOS == "2000" || newOS == "ME")
+ {
+ // We are upgrading from the old WinClassic file System to the new WinClassic filesystem!
+ // All the above OSes share basically the same file layout!
+ // (Excluding Documents And Settings) which is 2000 and ME only
+
+ SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "Outlook Express"), false, "Outlook Express", true);
+ CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Outlook Express", "WAB.exe"), "addressbook");
+ }
+ break;
+ }
+ }
+
public static void SaveDirectoryInfo(string directory, bool isProtected, string label, bool allowback)
{
if (!Directory.Exists(directory))