diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-06-17 08:56:10 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-06-17 08:56:10 +0100 |
| commit | 3a8ada000aebbe5de46dce584a5d2b4432ddb5ad (patch) | |
| tree | a632725a7bb9492fb5540402967107a6c9d3e3bf /TimeHACK.Main/OS | |
| parent | cb901e986f647c02c5f3e40cd60e80b88adde547 (diff) | |
| download | histacom2-3a8ada000aebbe5de46dce584a5d2b4432ddb5ad.tar.gz histacom2-3a8ada000aebbe5de46dce584a5d2b4432ddb5ad.tar.bz2 histacom2-3a8ada000aebbe5de46dce584a5d2b4432ddb5ad.zip | |
Updated my fork
Diffstat (limited to 'TimeHACK.Main/OS')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | 24 |
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); |
