diff options
| author | Michael <[email protected]> | 2017-02-05 10:56:48 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-05 10:56:48 -0500 |
| commit | 19b13528f6e4ecbef8aaca92d6bdcf7d23d42838 (patch) | |
| tree | d12032138c15bd0e891856c6f5ead9cc86428a46 /ShiftOS.WinForms | |
| parent | b1923154095df7b26d3e5263b5219f38f7c58c38 (diff) | |
| download | shiftos_thereturn-19b13528f6e4ecbef8aaca92d6bdcf7d23d42838.tar.gz shiftos_thereturn-19b13528f6e4ecbef8aaca92d6bdcf7d23d42838.tar.bz2 shiftos_thereturn-19b13528f6e4ecbef8aaca92d6bdcf7d23d42838.zip | |
Server now FULLY encrypts saves
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(); |
