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.Main | |
| 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.Main')
| -rw-r--r-- | TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs | 18 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 4 |
2 files changed, 12 insertions, 10 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(); diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 4777dae..4b0157e 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -227,7 +227,7 @@ namespace TimeHACK.OS.Win95.Win95Apps void OpenApplication(string appname) { switch (appname.ToLower()) - { + { case "explorer": Engine.Template.WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true); Program.AddTaskbarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer); @@ -283,7 +283,7 @@ namespace TimeHACK.OS.Win95.Win95Apps break; } - } + } string ReturnType(string extension) { string returnVal = ""; |
