mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
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
This commit is contained in:
parent
62a2bc4706
commit
2eac423247
3 changed files with 17 additions and 11 deletions
|
@ -49,7 +49,11 @@ public static void RefreshDesktopIcons(ListViewItem[] baseIcons, ref ListView th
|
|||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 @@ private void dlTimer_Tick(object sender, EventArgs e)
|
|||
|
||||
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();
|
||||
|
|
|
@ -227,7 +227,7 @@ public void OpenFile(string fileDir)
|
|||
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 @@ void OpenApplication(string appname)
|
|||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
string ReturnType(string extension) {
|
||||
string returnVal = "";
|
||||
|
|
Loading…
Reference in a new issue