aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs24
1 files changed, 19 insertions, 5 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index 4a2c988..a8a1323 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -7,6 +7,7 @@ using System.Media;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
+using System.Windows.Forms;
using TimeHACK.Engine;
namespace TimeHACK.OS.Win95.Win95Apps.Story
@@ -21,20 +22,33 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
// This is the very first story script!
public void startObjective()
{
-
+ Thread terminalThread = new Thread(main);
+ terminalThread.Start();
+ }
+
+ public void main()
+ {
wm.startWin95(term, "MS-DOS Prompt", null, true, true);
term.WriteLine("192.168.0.1 Connecting...");
+
+ term.Invalidate();
+ Application.DoEvents();
+
Thread soundThread = new Thread(dialup_sound_play);
soundThread.Start();
- soundThread.Join();
+ soundThread.Join();
+
term.WriteLine("192.168.0.1 Connected.");
- }
+ Application.DoEvents();
+ Boolean ended = false;
+ while (!ended) {
+ }
+ }
public void dialup_sound_play()
{
- SoundPlayer dialup_sound;
-
+ SoundPlayer dialup_sound;
// Play Dial-up Sound
Stream audio = Properties.Resources.modem_dial;
dialup_sound = new SoundPlayer(audio);