aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/SaveSystem.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-06 19:57:59 -0400
committerMichael <[email protected]>2017-05-06 19:57:59 -0400
commit1d4df69ee98427b6d9ad5175910de8b6b156284c (patch)
tree70044fc67177f6b9cd960c24ece4b505818eb629 /ShiftOS_TheReturn/SaveSystem.cs
parentd8004332b61bb310321b48e0f80efcb6ae68e579 (diff)
downloadshiftos_thereturn-1d4df69ee98427b6d9ad5175910de8b6b156284c.tar.gz
shiftos_thereturn-1d4df69ee98427b6d9ad5175910de8b6b156284c.tar.bz2
shiftos_thereturn-1d4df69ee98427b6d9ad5175910de8b6b156284c.zip
Fix merge conflicts.
Diffstat (limited to 'ShiftOS_TheReturn/SaveSystem.cs')
-rw-r--r--ShiftOS_TheReturn/SaveSystem.cs54
1 files changed, 5 insertions, 49 deletions
diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs
index 50aa260..1f2532a 100644
--- a/ShiftOS_TheReturn/SaveSystem.cs
+++ b/ShiftOS_TheReturn/SaveSystem.cs
@@ -216,7 +216,7 @@ namespace ShiftOS.Engine
if (string.IsNullOrWhiteSpace(CurrentSave.SystemName))
{
- Infobox.PromptText("Enter a system name", "Your system does not have a name. All systems within the digital society must have a name. Please enter one.", (name)=>
+ Infobox.PromptText("Enter a system name", "Your system does not have a name. All systems within the digital society must have a name. Please enter one.", (name) =>
{
if (string.IsNullOrWhiteSpace(name))
Infobox.Show("Invalid name", "Please enter a valid name.", () =>
@@ -261,7 +261,7 @@ namespace ShiftOS.Engine
CurrentSave.Users = new List<ClientSave>();
- if(CurrentSave.Users.Count == 0)
+ if (CurrentSave.Users.Count == 0)
{
CurrentSave.Users.Add(new ClientSave
{
@@ -305,13 +305,9 @@ namespace ShiftOS.Engine
{
if (progress == 0)
{
-<<<<<<< HEAD
string loginstr = CurrentSave.SystemName + " login: ";
string getuser = text.Remove(0, loginstr.Length);
if (CurrentSave.Users.FirstOrDefault(x => x.Username == getuser) == null)
-=======
- if (!string.IsNullOrWhiteSpace(text))
->>>>>>> origin/master
{
if (CurrentSave.Users.FirstOrDefault(x => x.Username == text) == null)
{
@@ -331,11 +327,8 @@ namespace ShiftOS.Engine
goback = true;
progress++;
}
-<<<<<<< HEAD
username = getuser;
progress++;
-=======
->>>>>>> origin/master
}
else if (progress == 1)
{
@@ -357,57 +350,20 @@ namespace ShiftOS.Engine
}
};
TerminalBackend.TextSent += ev;
- Console.WriteLine(CurrentSave.SystemName + " login:");
+
+ Console.Write(CurrentSave.SystemName + " login: ");
while (progress == 0)
{
-<<<<<<< HEAD
- string passwordstr = "password: ";
- string getpass = text.Remove(0, passwordstr.Length);
- var user = CurrentSave.Users.FirstOrDefault(x => x.Username == username);
- if (user.Password == getpass)
- {
- Console.WriteLine("Welcome to ShiftOS.");
- CurrentUser = user;
- Thread.Sleep(2000);
- progress++;
- }
- else
- {
- Console.WriteLine("Access denied.");
- goback = true;
- progress++;
- }
- TerminalBackend.TextSent -= ev;
- }
- };
- TerminalBackend.TextSent += ev;
-
- Console.Write(CurrentSave.SystemName + " login: ");
- while(progress == 0)
- {
- Thread.Sleep(10);
- }
- if (goback)
- goto Login;
- Console.Write("password: ");
- while (progress == 1)
- Thread.Sleep(10);
- if (goback)
- goto Login;
-
-
-=======
Thread.Sleep(10);
}
if (goback)
goto Login;
- Console.WriteLine("password:");
+ Console.Write("password: ");
while (progress == 1)
Thread.Sleep(10);
if (goback)
goto Login;
}
->>>>>>> origin/master
TerminalBackend.PrefixEnabled = true;
Shiftorium.LogOrphanedUpgrades = true;
Desktop.InvokeOnWorkerThread(new Action(() =>