diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-07-02 16:29:16 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-07-02 16:29:16 +0100 |
| commit | 99938de884fcf0dd572a330145dd91686268a45f (patch) | |
| tree | ec0016f90351794301e8eda68e77fb9766f5f9fb /TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs | |
| parent | 9d4a384d899702c01443872b75d182e810e3dac1 (diff) | |
| download | histacom2-99938de884fcf0dd572a330145dd91686268a45f.tar.gz histacom2-99938de884fcf0dd572a330145dd91686268a45f.tar.bz2 histacom2-99938de884fcf0dd572a330145dd91686268a45f.zip | |
Even Moar stuuuffffffff
Diffstat (limited to 'TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs')
| -rw-r--r-- | TimeHACK.Main/GlobalPrograms/WinClassicWindowsExplorer.cs | 25 |
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); } } } |
