diff options
| author | lempamo <[email protected]> | 2017-04-13 14:04:41 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-13 14:04:41 -0400 |
| commit | 036a986ce1f56e6cda0617e6e574a875b847911b (patch) | |
| tree | ee047052f0dae8b05059630cda9ce067469a871c /TimeHACK.Main/OS | |
| parent | f1e0c8f75de4a5086ff955789e9397696df25199 (diff) | |
| download | histacom2-036a986ce1f56e6cda0617e6e574a875b847911b.tar.gz histacom2-036a986ce1f56e6cda0617e6e574a875b847911b.tar.bz2 histacom2-036a986ce1f56e6cda0617e6e574a875b847911b.zip | |
WebChat1998 crash works!
Diffstat (limited to 'TimeHACK.Main/OS')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | 15 |
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); |
