aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/SaveSystem.cs13
-rw-r--r--ShiftOS_TheReturn/Shiftorium.cs9
2 files changed, 13 insertions, 9 deletions
diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs
index 2e9f9c1..6ab6b1b 100644
--- a/ShiftOS_TheReturn/SaveSystem.cs
+++ b/ShiftOS_TheReturn/SaveSystem.cs
@@ -176,24 +176,27 @@ namespace ShiftOS.Engine
Console.WriteLine(" ...{DONE}.");
}
- Story.Start();
-
-
Thread.Sleep(50);
Console.WriteLine("{SYSTEM_INITIATED}");
TerminalBackend.InStory = false;
+ TerminalBackend.PrefixEnabled = true;
Shiftorium.LogOrphanedUpgrades = true;
Desktop.InvokeOnWorkerThread(new Action(() => Desktop.PopulateAppLauncher()));
- GameReady?.Invoke();
if (CurrentSave.StoryPosition == 1)
{
Desktop.InvokeOnWorkerThread(new Action(() =>
{
TutorialManager.StartTutorial();
+
}));
+ while(TutorialManager.IsInTutorial == true) { }
+ GameReady?.Invoke();
+ }
+ else
+ {
+ GameReady?.Invoke();
}
-
}));
thread.IsBackground = true;
thread.Start();
diff --git a/ShiftOS_TheReturn/Shiftorium.cs b/ShiftOS_TheReturn/Shiftorium.cs
index 1b09818..06a189f 100644
--- a/ShiftOS_TheReturn/Shiftorium.cs
+++ b/ShiftOS_TheReturn/Shiftorium.cs
@@ -122,11 +122,14 @@ namespace ShiftOS.Engine
return true;
}
+ public static bool IsInitiated { get; private set; }
public static void Init()
{
- try
+ if (IsInitiated == false)
{
+ IsInitiated = true;
+ //Let the crash handler deal with this one...
var dict = GetDefaults();
foreach (var itm in dict)
{
@@ -136,9 +139,7 @@ namespace ShiftOS.Engine
}
}
}
- catch
- {
- }
+
}
public static int GetCPValue(string id)