aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-08 11:20:02 -0500
committerMichael <[email protected]>2017-02-08 11:20:02 -0500
commit512a02ba88678cb7ddd65f32245135c8cf2ba1c3 (patch)
treec32cb4d429f01595bdbe8de00f030a21a0939425 /ShiftOS.WinForms
parent530d34e1aeb040c4330b1693e6cbb7e25cf49784 (diff)
downloadshiftos_thereturn-512a02ba88678cb7ddd65f32245135c8cf2ba1c3.tar.gz
shiftos_thereturn-512a02ba88678cb7ddd65f32245135c8cf2ba1c3.tar.bz2
shiftos_thereturn-512a02ba88678cb7ddd65f32245135c8cf2ba1c3.zip
Mind my language...
We finally fixed the god damn fucking fuckity fucking Tutorial bug. Finally, for fucks sake.
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/FakeSetupScreen.cs1
-rw-r--r--ShiftOS.WinForms/Oobe.cs16
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs2
3 files changed, 7 insertions, 12 deletions
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;