From 3a8ada000aebbe5de46dce584a5d2b4432ddb5ad Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 17 Jun 2017 08:56:10 +0100 Subject: Updated my fork --- TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'TimeHACK.Main/OS') 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); -- cgit v1.2.3