aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-31 21:04:18 -0400
committerlempamo <[email protected]>2017-07-31 21:04:18 -0400
commit87902a4c24b0c5bbd2695cfc771e9b6419c75e16 (patch)
tree3f02b56cc51377e66f8032b6f406c3feb3c627b0 /TimeHACK.Engine
parent7a662a51d2206aaa6e587fbd719d3123875679f3 (diff)
downloadhistacom2-87902a4c24b0c5bbd2695cfc771e9b6419c75e16.tar.gz
histacom2-87902a4c24b0c5bbd2695cfc771e9b6419c75e16.tar.bz2
histacom2-87902a4c24b0c5bbd2695cfc771e9b6419c75e16.zip
icons for the explorer
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/DesktopController.cs1
-rw-r--r--TimeHACK.Engine/SaveSystem.cs7
2 files changed, 5 insertions, 3 deletions
diff --git a/TimeHACK.Engine/DesktopController.cs b/TimeHACK.Engine/DesktopController.cs
index 6928b5b..db84bf8 100644
--- a/TimeHACK.Engine/DesktopController.cs
+++ b/TimeHACK.Engine/DesktopController.cs
@@ -59,6 +59,7 @@ namespace TimeHACK.Engine
}
if (new FileInfo(dir).Extension == ".exe" && file.FileIcon == 8) file.FileIcon = 10;
+ if (new FileInfo(dir).Extension == ".txt" && file.FileIcon == 8) file.FileIcon = 12;
view.Items.Add(Path.GetFileName(dir), file.FileIcon);
view.FindItemWithText(Path.GetFileName(dir)).Tag = dir;
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<THFileInfo>(256);
info.SubDirs = new List<THDirInfo>(256);