From 512a02ba88678cb7ddd65f32245135c8cf2ba1c3 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 8 Feb 2017 11:20:02 -0500 Subject: Mind my language... We finally fixed the god damn fucking fuckity fucking Tutorial bug. Finally, for fucks sake. --- ShiftOS.WinForms/FakeSetupScreen.cs | 1 + ShiftOS.WinForms/Oobe.cs | 16 +++++----------- ShiftOS.WinForms/WinformsDesktop.cs | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) (limited to 'ShiftOS.WinForms') diff --git a/ShiftOS.WinForms/FakeSetupScreen.cs b/ShiftOS.WinForms/FakeSetupScreen.cs index d0b04fb..dd93a55 100644 --- a/ShiftOS.WinForms/FakeSetupScreen.cs +++ b/ShiftOS.WinForms/FakeSetupScreen.cs @@ -348,6 +348,7 @@ So make sure your password is secure enough that it can't be guessed, but easy f ShiftOS.Objects.ShiftFS.Utils.Delete(Paths.GetPath("user.dat")); System.IO.File.WriteAllText(Paths.SaveFile, ShiftOS.Objects.ShiftFS.Utils.ExportMount(0)); SaveSystem.NewSave(); + this.CanClose = true; this.Close(); } } diff --git a/ShiftOS.WinForms/Oobe.cs b/ShiftOS.WinForms/Oobe.cs index 8eef34a..8ff1b53 100644 --- a/ShiftOS.WinForms/Oobe.cs +++ b/ShiftOS.WinForms/Oobe.cs @@ -199,6 +199,8 @@ namespace ShiftOS.WinForms TextType("I have been installing ShiftOS on your system in the background as I was talking with you. Before I can set you free, I need to give you a tutorial on how to use the system."); Thread.Sleep(500); TextType("I will reboot your system in Tutorial Mode now. Complete the tutorial, and you shall be on your way."); + + Thread.Sleep(3000); SaveSystem.CurrentSave = MySave; SaveSystem.CurrentSave.StoryPosition = 1; Utils.WriteAllText(Paths.GetPath("user.dat"), JsonConvert.SerializeObject(new @@ -207,18 +209,10 @@ namespace ShiftOS.WinForms password = MySave.Password })); Shiftorium.Silent = true; - SaveSystem.SaveGame(); - - Thread.Sleep(3000); - try { - TutorialManager.StartTutorial(); - } catch (Exception e) { - TextType("An error has occoured while starting the tutorial"); - TextType(e.ToString()); - } - //this.Close(); // This has been commented out because the form closes when the error appears. Uncomment this if no more errors appear + SaveSystem.SaveGame(); //Yknow, just incase it crashes. + this.Invoke(new Action(this.Close)); } - catch(Exception e) + catch (Exception e) { TextType("I have experienced an error."); TextType(e.ToString()); diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 0e20da8..63cdcfa 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -99,7 +99,7 @@ namespace ShiftOS.WinForms }; time.Tick += (o, a) => { - if (SaveSystem.CurrentSave != null) + if (SaveSystem.CurrentSave != null && TutorialManager.IsInTutorial == false) { lbtime.Text = Applications.Terminal.GetTime(); lbtime.Left = desktoppanel.Width - lbtime.Width - LoadedSkin.DesktopPanelClockFromRight.X; -- cgit v1.2.3