desktop icons no longer TRANSFAR to windows 98 from 95

This commit is contained in:
lempamo 2017-10-29 20:09:58 -04:00
parent 45b4754d9e
commit c29dcdaed4

View file

@ -352,6 +352,15 @@ public static void UpgradeFileSystem(string newOS)
break; break;
} }
} }
CurrentSave.BytesLeft = 916455424;
string toWrite = JsonConvert.SerializeObject(fsfi, Formatting.Indented);
File.WriteAllText(Path.Combine(ProfileProgramsDirectory, "_data.info"), toWrite);
fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(ProfileWindowsDirectory, "_data.info")));
Directory.Delete(Path.Combine(ProfileWindowsDirectory, "Desktop"), true);
Directory.CreateDirectory(Path.Combine(ProfileWindowsDirectory, "Desktop"));
} }
} }