aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-06-18 18:39:27 -0700
committerAShifter <[email protected]>2017-06-18 18:39:27 -0700
commitbf7fcf52ad5373e25fbe399f4f1dd1091f53c159 (patch)
tree858cc86e8f02535ff7ec081fb290611d0ff0705f /TimeHACK.Main/OS/Win95/Win95Apps/Story
parent15f2e1a7e3ec5d85aee4a126144722feeff4682f (diff)
downloadhistacom2-bf7fcf52ad5373e25fbe399f4f1dd1091f53c159.tar.gz
histacom2-bf7fcf52ad5373e25fbe399f4f1dd1091f53c159.tar.bz2
histacom2-bf7fcf52ad5373e25fbe399f4f1dd1091f53c159.zip
Some more terminal work
IT WORKS! IT WWOOOOORRRKKKSS!!! YOu can now use Thread.Sleep(); without issues.
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs28
1 files changed, 16 insertions, 12 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index 2310af4..faafdea 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -14,35 +14,39 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
{
static class Hack1 : Object
{
- static WinClassicTerminal term = new WinClassicTerminal();
+ static WinClassicTerminal Console = new WinClassicTerminal();
static WindowManager wm = new WindowManager();
static Boolean ended = false;
static Thread soundThread = new Thread(dialup_sound_play);
+ static Boolean devMode = false;
// This is the very first story script!
public static void startObjective()
{
System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
- wm.startWin95(term, "MS-DOS Prompt", null, true, true);
- term.WriteLine("192.168.0.1 Connecting...");
-
- term.Invalidate();
- Application.DoEvents();
+ wm.startWin95(Console, "MS-DOS Prompt", null, true, true);
+ Console.WriteLine("telnet> 104.27.135.159 Connecting...");
tmr.Interval = 1;
tmr.Tick += new EventHandler(CheckIfSoundFinished);
- soundThread.Start();
-
- tmr.Start();
+ if (devMode == true)
+ {
+ continueObjective();
+ }
+ else
+ {
+ soundThread.Start();
+ tmr.Start();
+ }
}
public static void continueObjective()
{
- term.WriteLine("192.168.0.1 Connected.");
-
- Application.DoEvents();
+ Console.WriteLine("telnet> 104.27.135.159 Connected.");
+ Thread.Sleep(2500);
+ Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'.");
}
public static void CheckIfSoundFinished(Object sender, EventArgs e)