From 7f5d0c3915d178e4d412a0b1a9b48baf058b2afc Mon Sep 17 00:00:00 2001 From: FloppyDiskDrive Date: Sun, 17 Sep 2017 21:24:14 -0500 Subject: Added Error Blaster 95, see Description for details Error Blaster is updated with a new type: "Memory Leak." After the messageGen timer interval hits 300, the PC BSODs. Start Runner is also in there, however it is not functional due to unknown reasons. --- Histacom2.Engine/BSODCreator.cs | 4 ++++ Histacom2.Engine/Template/Infobox95.cs | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'Histacom2.Engine') diff --git a/Histacom2.Engine/BSODCreator.cs b/Histacom2.Engine/BSODCreator.cs index fb693a9..0e1ebf1 100644 --- a/Histacom2.Engine/BSODCreator.cs +++ b/Histacom2.Engine/BSODCreator.cs @@ -17,6 +17,7 @@ namespace Histacom2.Engine Testing, WimpEnding, PiracyEnding, + Generic } public Win9XBSOD throw9XBSOD(bool except, BSODCauses type) @@ -43,6 +44,9 @@ namespace Histacom2.Engine foreach (Control ctrl in bsod.Controls) ctrl.ForeColor = System.Drawing.Color.Silver; bsod.label1.BackColor = System.Drawing.Color.Silver; bsod.label1.ForeColor = System.Drawing.Color.Black; + break; + case BSODCauses.Generic: + break; default: break; diff --git a/Histacom2.Engine/Template/Infobox95.cs b/Histacom2.Engine/Template/Infobox95.cs index 9214461..6408177 100644 --- a/Histacom2.Engine/Template/Infobox95.cs +++ b/Histacom2.Engine/Template/Infobox95.cs @@ -22,21 +22,26 @@ namespace Histacom2.Engine.Template pictureBox1.Image = Properties.Resources.Win95Info; SoundPlayer spa = new SoundPlayer(SaveSystem.currentTheme.asteriskSound); spa.Play(); + spa.Stream.Position = 0; + break; case InfoboxType.Question: pictureBox1.Image = Properties.Resources.Win95Question; SoundPlayer spq = new SoundPlayer(SaveSystem.currentTheme.questionSound); spq.Play(); + spq.Stream.Position = 0; break; case InfoboxType.Warning: pictureBox1.Image = Properties.Resources.Win95Warning; SoundPlayer spw = new SoundPlayer(SaveSystem.currentTheme.exclamationSound); spw.Play(); + spw.Stream.Position = 0; break; case InfoboxType.Error: pictureBox1.Image = Properties.Resources.Win95Error; SoundPlayer spe = new SoundPlayer(SaveSystem.currentTheme.critStopSound); spe.Play(); + spe.Stream.Position = 0; break; } -- cgit v1.2.3