diff options
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/FakeSetupScreen.cs | 2 | ||||
| -rw-r--r-- | ShiftOS.WinForms/Oobe.cs | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/FakeSetupScreen.cs b/ShiftOS.WinForms/FakeSetupScreen.cs index b7b8612..8a6aa95 100644 --- a/ShiftOS.WinForms/FakeSetupScreen.cs +++ b/ShiftOS.WinForms/FakeSetupScreen.cs @@ -347,7 +347,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)); - Application.Restart(); + SaveSystem.Restart(); } } } diff --git a/ShiftOS.WinForms/Oobe.cs b/ShiftOS.WinForms/Oobe.cs index 32a1fed..14125dc 100644 --- a/ShiftOS.WinForms/Oobe.cs +++ b/ShiftOS.WinForms/Oobe.cs @@ -190,11 +190,14 @@ namespace ShiftOS.WinForms TextType("I will reboot your system in Tutorial Mode now. Complete the tutorial, and you shall be on your way."); SaveSystem.CurrentSave = MySave; SaveSystem.CurrentSave.StoryPosition = 1; - SaveSystem.SaveGame(); - this.Invoke(new Action(() => + Utils.WriteAllText(Paths.GetPath("user.dat"), JsonConvert.SerializeObject(new { - this.Close(); + username = MySave.Username, + password = MySave.Password })); + SaveSystem.SaveGame(); + Thread.Sleep(5000); + SaveSystem.Restart(); })); this.Show(); this.BringToFront(); |
