diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-07-22 09:27:28 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-07-22 09:27:28 +0100 |
| commit | eca20f542d9b604f95f060d92028c4fd4ee173a6 (patch) | |
| tree | a3e98889f7f783e87948ba330ec9b43363cff8fc /TimeHACK.Engine | |
| parent | c7266b653bc1ae99a7e11607a474195789f094ad (diff) | |
| download | histacom2-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.cs | 18 |
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)) |
