aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-23 18:19:09 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-23 18:19:09 +0100
commit2eac4232478d28e5bb2d93a60f17ba876680f045 (patch)
treeddf27134b3143f7ab6b9578589f83203764810cc /TimeHACK.Engine
parent62a2bc4706a331eaed2bcd7c08ffb88b4afe8b91 (diff)
downloadhistacom2-2eac4232478d28e5bb2d93a60f17ba876680f045.tar.gz
histacom2-2eac4232478d28e5bb2d93a60f17ba876680f045.tar.bz2
histacom2-2eac4232478d28e5bb2d93a60f17ba876680f045.zip
Made the Downloader save .exe files to the Desktop
These are then interpreted by the EXE file opening thing (For Windows 95 it's the Win95WindowsExplorer and for Windows 98/2000/ME it's really WinClassicWindowsExplorer
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/DesktopController.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/TimeHACK.Engine/DesktopController.cs b/TimeHACK.Engine/DesktopController.cs
index a22df95..f507ab8 100644
--- a/TimeHACK.Engine/DesktopController.cs
+++ b/TimeHACK.Engine/DesktopController.cs
@@ -49,7 +49,11 @@ namespace TimeHACK.Engine
{
if (Path.GetFileName(dir) != "_data.info")
{
- theView.Items.Add(Path.GetFileName(dir), 12);
+ int appIcon = 12;
+
+ if (new FileInfo(dir).Extension == ".exe") appIcon = 8;
+
+ theView.Items.Add(Path.GetFileName(dir), appIcon);
theView.FindItemWithText(Path.GetFileName(dir)).Tag = dir;
}
}