aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs')
-rw-r--r--TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs25
1 files changed, 17 insertions, 8 deletions
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs b/TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs
index c2b53bc..3a263a5 100644
--- a/TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs
+++ b/TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs
@@ -112,11 +112,24 @@ namespace TimeHACK.OS.Win95.Win95Apps
{
// Get app Icon
- int AppIcon = 1;
+ int AppIcon = 2;
- switch (Path.GetFileName(str))
+ switch (new FileInfo(str).Extension)
{
case ".exe":
+ String contents;
+
+ contents = File.ReadAllText(str);
+
+ switch (contents.ToLower())
+ {
+ case "calculator":
+ AppIcon = 3;
+ break;
+ case "windowsexplorer":
+ AppIcon = 4;
+ break;
+ }
break;
}
@@ -126,16 +139,12 @@ namespace TimeHACK.OS.Win95.Win95Apps
{
if (new FileInfo(str).Extension == onlyViewExtension)
{
- if (new FileInfo(str).Extension == ".exe")
- {
- this.mainView.Items.Add(Path.GetFileName(str), 2);
- }
-
+ this.mainView.Items.Add(Path.GetFileName(str), AppIcon);
}
}
} else {
if (!(Path.GetFileName(str) == "_data.info")) {
- this.mainView.Items.Add(Path.GetFileName(str), 2);
+ this.mainView.Items.Add(Path.GetFileName(str), AppIcon);
}
}
}