From 87902a4c24b0c5bbd2695cfc771e9b6419c75e16 Mon Sep 17 00:00:00 2001 From: lempamo Date: Mon, 31 Jul 2017 21:04:18 -0400 Subject: icons for the explorer --- TimeHACK.Engine/SaveSystem.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'TimeHACK.Engine/SaveSystem.cs') diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs index 29e230a..e374ba9 100644 --- a/TimeHACK.Engine/SaveSystem.cs +++ b/TimeHACK.Engine/SaveSystem.cs @@ -186,8 +186,9 @@ namespace TimeHACK.Engine SaveDirectoryInfo(ProfileWindowsDirectory, "Temp", true, "Temp", true); SaveDirectoryInfo(ProfileWindowsDirectory, "Desktop", true, "Desktop", true); - CreateWindowsFile(ProfileWindowsDirectory, "calc.exe", "calc", bytes: 59392); - CreateWindowsFile(ProfileWindowsDirectory, "explorer.exe", "explorer", bytes:204288); + CreateWindowsFile(ProfileWindowsDirectory, "calc.exe", "calc", 10, 59392); + CreateWindowsFile(ProfileWindowsDirectory, "explorer.exe", "explorer", 10, 204288); + CreateWindowsFile(ProfileWindowsDirectory, "notepad.exe", "notepad", 12, 34034); } public static void CreateWindowsFile(string filepath, string filename, string contents, int fileicon = 8, int bytes = 512) @@ -263,7 +264,7 @@ namespace TimeHACK.Engine info.DOSLabel = info.Label.ToUpper().Replace("*", "").Replace("+", "").Replace(":", "").Replace(";", "").Replace(".", "").Replace(" ", ""); if (info.DOSLabel.Length > 8) info.DOSLabel = info.DOSLabel.Substring(0, 6) + "~1"; - if (dirname == "C:") info.DOSLabel = "C:"; + if (label == "C:") info.DOSLabel = "C:"; info.AllowBack = allowback; info.Files = new List(256); info.SubDirs = new List(256); -- cgit v1.2.3