aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Oobe.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-01-22 19:03:59 -0500
committerMichael <[email protected]>2017-01-22 19:04:04 -0500
commit5b01c364e65616a41332f76e445a9dbd8e64a53f (patch)
treec793a556fc3f2dff03184f0719c4d866aa7b875b /ShiftOS.WinForms/Oobe.cs
parent28a8eb7a6a62f3de9515d22dc1bb066585e64655 (diff)
downloadshiftos_thereturn-5b01c364e65616a41332f76e445a9dbd8e64a53f.tar.gz
shiftos_thereturn-5b01c364e65616a41332f76e445a9dbd8e64a53f.tar.bz2
shiftos_thereturn-5b01c364e65616a41332f76e445a9dbd8e64a53f.zip
Implement save migration from client to server
Diffstat (limited to 'ShiftOS.WinForms/Oobe.cs')
-rw-r--r--ShiftOS.WinForms/Oobe.cs30
1 files changed, 29 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Oobe.cs b/ShiftOS.WinForms/Oobe.cs
index 0a55602..0e249fa 100644
--- a/ShiftOS.WinForms/Oobe.cs
+++ b/ShiftOS.WinForms/Oobe.cs
@@ -215,7 +215,35 @@ namespace ShiftOS.WinForms
public void ShowSaveTransfer(Save save)
{
- throw new NotImplementedException();
+ var fSetup = new FakeSetupScreen(this, 7);
+
+ var t = new Thread(() =>
+ {
+ textgeninput = lblhackwords;
+ Clear();
+ TextType("Welcome back to ShiftOS.");
+ Thread.Sleep(500);
+ TextType("Since your last time inside ShiftOS, the operating system has changed. Your user account is no longer stored on your local system.");
+ Thread.Sleep(500);
+ this.Invoke(new Action(() =>
+ {
+ //UPS is drunky heaven over here... it's a liquor store, I think... - Drunk Michael
+ fSetup.UserReregistered += (u, p, s) =>
+ {
+ save.Username = u;
+ save.Password = p;
+ save.SystemName = s;
+ SaveSystem.CurrentSave = save;
+ SaveSystem.SaveGame();
+ if(Utils.FileExists(Paths.SaveFileInner))
+ Utils.Delete(Paths.SaveFileInner);
+ this.Close();
+ };
+ fSetup.Show();
+ }));
+ });
+ t.IsBackground = true;
+ t.Start();
}
public void PromptForLogin()