aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-28 06:44:58 -0400
committerMichael <[email protected]>2017-05-28 06:44:58 -0400
commitdc0b8c66885593f7412e24bf7132bc08f6c40a9c (patch)
tree4e72d08904a24aa9e7fe9e6daeaf958a3f2976f2 /ShiftOS_TheReturn
parente841b168e13e0bd699c0e0d19857167aa725f1ca (diff)
downloadshiftos_thereturn-dc0b8c66885593f7412e24bf7132bc08f6c40a9c.tar.gz
shiftos_thereturn-dc0b8c66885593f7412e24bf7132bc08f6c40a9c.tar.bz2
shiftos_thereturn-dc0b8c66885593f7412e24bf7132bc08f6c40a9c.zip
Fix a bug with command-line login.
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/SaveSystem.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs
index d74006a..f3d95be 100644
--- a/ShiftOS_TheReturn/SaveSystem.cs
+++ b/ShiftOS_TheReturn/SaveSystem.cs
@@ -349,6 +349,7 @@ namespace ShiftOS.Engine
{
if (CurrentSave.Users.FirstOrDefault(x => x.Username == getuser) == null)
{
+ Console.WriteLine();
Console.WriteLine("User not found.");
goback = true;
progress++;
@@ -360,6 +361,7 @@ namespace ShiftOS.Engine
}
else
{
+ Console.WriteLine();
Console.WriteLine("Username not provided.");
TerminalBackend.TextSent -= ev;
goback = true;
@@ -373,13 +375,14 @@ namespace ShiftOS.Engine
var user = CurrentSave.Users.FirstOrDefault(x => x.Username == username);
if (user.Password == getpass)
{
+ Console.WriteLine();
Console.WriteLine("Welcome to ShiftOS.");
CurrentUser = user;
- Thread.Sleep(2000);
progress++;
}
else
{
+ Console.WriteLine();
Console.WriteLine("Access denied.");
goback = true;
progress++;
@@ -388,7 +391,7 @@ namespace ShiftOS.Engine
}
};
TerminalBackend.TextSent += ev;
-
+ Console.WriteLine();
Console.Write(CurrentSave.SystemName + " login: ");
while (progress == 0)
{
@@ -396,6 +399,7 @@ namespace ShiftOS.Engine
}
if (goback)
goto Login;
+ Console.WriteLine();
Console.Write("password: ");
while (progress == 1)
Thread.Sleep(10);