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/Oobe.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ShiftOS.WinForms/Oobe.cs') 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