diff options
| author | Jason <[email protected]> | 2017-07-23 20:35:08 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-23 20:35:08 +0200 |
| commit | a852b2c7f2bb372a89e78e805298c33c00ebe924 (patch) | |
| tree | 946806e40f8c7c377cde81bcd79b525d2edd687f /TimeHACK.Main/GlobalPrograms | |
| parent | d42569b3e37e0a03835c7965d67cdf19e14ad4ba (diff) | |
| parent | eea369f5b5f8883b99a8371036cb09c3dd7ca774 (diff) | |
| download | histacom2-a852b2c7f2bb372a89e78e805298c33c00ebe924.tar.gz histacom2-a852b2c7f2bb372a89e78e805298c33c00ebe924.tar.bz2 histacom2-a852b2c7f2bb372a89e78e805298c33c00ebe924.zip | |
Merge pull request #136 from Alex-TIMEHACK/master
Realistic Desktop
Diffstat (limited to 'TimeHACK.Main/GlobalPrograms')
| -rw-r--r-- | TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs b/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs index c5d00a2..276ca7f 100644 --- a/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs +++ b/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs @@ -1,5 +1,7 @@ using System; +using System.IO; using System.Windows.Forms; +using static TimeHACK.Engine.SaveSystem; namespace TimeHACK.OS.Win95.Win95Apps { @@ -41,35 +43,35 @@ namespace TimeHACK.OS.Win95.Win95Apps if (appName.Text == "Downloading: Guess The Number") { - Windows95.desktopicons.Items.Add("Guess The Number Setup", imageIndex: 8); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Guess The Number Setup.exe"), "GuessTheNumber"); } if (appName.Text == "Downloading: Start Runner") { - Windows95.desktopicons.Items.Add("Start Runner Setup", imageIndex: 9); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner"); } if (appName.Text == "Downloading: Error Blaster") { - Windows95.desktopicons.Items.Add("Error Blaster Setup", imageIndex: 10); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Error Blaster Setup.exe"), "ErrorBlaster"); } if (appName.Text == "Downloading: Skindows 95") { - Windows95.desktopicons.Items.Add("Skindows 95 Setup", imageIndex: 12); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Skindows 95 Setup.exe"), "Skindows95Setup"); } if (appName.Text == "Downloading: Web Chat") { - TitleScreen.frm95.desktopicons.Items.Add("Web Chat Setup", imageIndex: 11); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Web Chat Setup.exe"), "web chat setup"); } if (appName.Text == "Downloading: hwcv.exe") { - Windows95.desktopicons.Items.Add("hwcv.exe", imageIndex: 14); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "hwcv.exe"), "hwcv"); } if (appName.Text == "Downloading: Time Distorter") { - Windows95.desktopicons.Items.Add("Time Distorter Setup", imageIndex: 13); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Time Distorter Setup.exe"), "time distorter setup"); } if (appName.Text == "Downloading: FTP Client") { - TitleScreen.frm95.desktopicons.Items.Add("FTP Client Setup", imageIndex: 11); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "FTP Client setup.exe"), "ftp client setup"); } ((Form)this.TopLevelControl).Close(); dlTimer.Stop(); |
