aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/ShiftOS.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/ShiftOS.cs')
-rw-r--r--ShiftOS.Frontend/ShiftOS.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/ShiftOS.cs b/ShiftOS.Frontend/ShiftOS.cs
index 833ee59..fd3d784 100644
--- a/ShiftOS.Frontend/ShiftOS.cs
+++ b/ShiftOS.Frontend/ShiftOS.cs
@@ -113,10 +113,15 @@ Reflection manager found {ReflectMan.Types.Count()} Common Language Runtime type
statslabel.Layout();
};
+ TerminalBackend.TerminalRequested += () =>
+ {
+ AppearanceManager.SetupWindow(new Apps.Terminal());
+ };
+
//We'll use sandbox mode
- SaveSystem.IsSandbox = true;
+ SaveSystem.IsSandbox = false;
- SaveSystem.Begin();
+ SaveSystem.Begin(true);
var textinput = new GUI.TextInput();
textinput.Width = 250;
@@ -174,6 +179,12 @@ Reflection manager found {ReflectMan.Types.Count()} Common Language Runtime type
/// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Update(GameTime gameTime)
{
+ if (UIManager.CrossThreadOperations.Count > 0)
+ {
+ var action = UIManager.CrossThreadOperations.Dequeue();
+ action?.Invoke();
+ }
+
//Let's get the mouse state
var mouseState = Mouse.GetState(this.Window);