From 19b13528f6e4ecbef8aaca92d6bdcf7d23d42838 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 5 Feb 2017 10:56:48 -0500 Subject: Server now FULLY encrypts saves --- ShiftOS.WinForms/FakeSetupScreen.cs | 2 +- ShiftOS.WinForms/Oobe.cs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'ShiftOS.WinForms') 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(); -- cgit v1.2.3