aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-04-13 12:43:13 -0700
committerGitHub <[email protected]>2017-04-13 12:43:13 -0700
commit69e90dc5e03f73a36c5ed069d9814b5c2900cc90 (patch)
treeee047052f0dae8b05059630cda9ce067469a871c /TimeHACK.Main/OS
parent4cc2631a033d2bfb7a7e926f9b17d85862c2eea3 (diff)
parent036a986ce1f56e6cda0617e6e574a875b847911b (diff)
downloadhistacom2-69e90dc5e03f73a36c5ed069d9814b5c2900cc90.tar.gz
histacom2-69e90dc5e03f73a36c5ed069d9814b5c2900cc90.tar.bz2
histacom2-69e90dc5e03f73a36c5ed069d9814b5c2900cc90.zip
Merge pull request #43 from lempamo/master
WebChat1998 crash works!
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
index 85ac07c..afca54c 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
@@ -11,6 +11,7 @@ using TimeHACK.Engine;
using System.Threading;
using System.Media;
using System.IO;
+using TimeHACK.Engine.Template;
namespace TimeHACK.OS.Win95.Win95Apps
{
@@ -28,9 +29,14 @@ namespace TimeHACK.OS.Win95.Win95Apps
SoundPlayer receive = new SoundPlayer(Properties.Resources.AIMmessagereceived);
SoundPlayer file = new SoundPlayer(Properties.Resources.AIMfile);
+ BSODCreator bc = new BSODCreator();
+ Win9XBSOD bsod = null;
+
public WebChat1998()
{
InitializeComponent();
+ bsod = bc.throw9XBSOD(false, BSODCreator.BSODCauses.ExitChat98Early);
+ bsod.Hide();
}
private void WebChat1998_Load(object sender, EventArgs e)
{
@@ -63,6 +69,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
case "addsh":
listBox1.Items.Add("SkyHigh");
join.Play();
+ this.ParentForm.FormClosing += WebChatClosing;
break;
case "nameguess":
typechat.Hide();
@@ -85,6 +92,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
case "addpadams":
listBox1.Items.Add("12padams");
join.Play();
+ ((WinClassic)this.ParentForm).closeDisabled = true;
break;
default:
receive.Play();
@@ -109,6 +117,13 @@ namespace TimeHACK.OS.Win95.Win95Apps
chat_index++;
}
+ private void WebChatClosing(object sender, FormClosingEventArgs e)
+ {
+ bsod.FormClosing += new FormClosingEventHandler(Program.title.BSODRewind);
+ bsod.Show();
+ bsod.BringToFront();
+ }
+
private void Button2_Click(object sender, EventArgs e)
{
if (typechat.Text != "") history.AppendText(TitleScreen.username + ": " + typechat.Text + Environment.NewLine);