aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-06-17 14:30:06 +0100
committerGitHub <[email protected]>2017-06-17 14:30:06 +0100
commitf50e7e4d857d98c6aa237b97ee026a309503d079 (patch)
tree263aac19b832831def6f18cdaa0e34e82a30eb63 /TimeHACK.Main/OS/Win95/Win95Apps/Story
parent05946bfb41f5d248e4f95e8f2dc4689a4a71edd0 (diff)
parentdcbf41b4070d46146fd6801a0f64161d4f570ec3 (diff)
downloadhistacom2-f50e7e4d857d98c6aa237b97ee026a309503d079.tar.gz
histacom2-f50e7e4d857d98c6aa237b97ee026a309503d079.tar.bz2
histacom2-f50e7e4d857d98c6aa237b97ee026a309503d079.zip
Merge pull request #96 from Alex-TIMEHACK/master
Done basically nothing
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story')
-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);