aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Terminal/Commands
diff options
context:
space:
mode:
authorRichie Moch <[email protected]>2018-12-23 19:15:07 -0600
committerRichie Moch <[email protected]>2018-12-23 19:15:07 -0600
commitbca879db94bc6395dbfa77628747080311fdb226 (patch)
tree24103811cd3df0957f2450bbe579e05d7dc7c4e6 /ShiftOS.Main/Terminal/Commands
parentd94c79dbf5183230e5fd3342848408f776de60ea (diff)
downloadshiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.tar.gz
shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.tar.bz2
shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.zip
started work on the pong, implemented "ShiftToolStrip". (note: pong is very buggy)
Diffstat (limited to 'ShiftOS.Main/Terminal/Commands')
-rw-r--r--ShiftOS.Main/Terminal/Commands/startx.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/ShiftOS.Main/Terminal/Commands/startx.cs b/ShiftOS.Main/Terminal/Commands/startx.cs
index 38a8fdf..5b2feb4 100644
--- a/ShiftOS.Main/Terminal/Commands/startx.cs
+++ b/ShiftOS.Main/Terminal/Commands/startx.cs
@@ -7,7 +7,8 @@ using System.Threading.Tasks;
using ShiftOS.Engine;
using static ShiftOS.Engine.CodepointUpgrade;
using static ShiftOS.Engine.SaveSystem;
-
+using ShiftOS.Main;
+using System.Windows.Forms;
namespace ShiftOS.Main.Terminal.Commands
{
@@ -15,12 +16,12 @@ namespace ShiftOS.Main.Terminal.Commands
{
private bool hasGUI = false;
private bool autostart = false;
+ private Timer timer = new Timer();
public override string Name { get; } = "startx";
public override string Summary { get; } = "Starts the ShiftX driver.";
public override string Usage { get; } = "startx";
public override bool Unlocked { get; set; } = false;
public int codePoints { get; set; } = 150;
-
public override void Run(params string[] args)
{
if (args.Length > 0)
@@ -43,13 +44,16 @@ namespace ShiftOS.Main.Terminal.Commands
}
if (!hasGUI)
{
- var d = new Desktop();
- d.Show();
+ WriteLine("[startx] starting driver...");
+ new System.Threading.ManualResetEvent(false).WaitOne(1500);
+
+ new Desktop().Show();
hasGUI = true;
+ return;
}
- if (hasGUI == true)
+ if (hasGUI)
{
- WriteLine("The ShiftX driver has already been intialized.");
+ WriteLine("startx: the ShiftX driver has already been intialized.");
return;
}
}