diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-07-23 18:19:09 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-07-23 18:19:09 +0100 |
| commit | 2eac4232478d28e5bb2d93a60f17ba876680f045 (patch) | |
| tree | ddf27134b3143f7ab6b9578589f83203764810cc /TimeHACK.Engine | |
| parent | 62a2bc4706a331eaed2bcd7c08ffb88b4afe8b91 (diff) | |
| download | histacom2-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.cs | 6 |
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; } } |
