aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/SaveSystem.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-02 09:47:23 -0500
committerMichael <[email protected]>2017-02-02 09:47:23 -0500
commitbbe37edb68f9e7535216bff80ba3e6b16cbca398 (patch)
tree4382859eda0c253e17966159890f49208a41367f /ShiftOS_TheReturn/SaveSystem.cs
parentd8978b860d950e3ccde3c8beecf8b88bdd4a34a8 (diff)
downloadshiftos_thereturn-bbe37edb68f9e7535216bff80ba3e6b16cbca398.tar.gz
shiftos_thereturn-bbe37edb68f9e7535216bff80ba3e6b16cbca398.tar.bz2
shiftos_thereturn-bbe37edb68f9e7535216bff80ba3e6b16cbca398.zip
Shiftnet, and audio fixes
Diffstat (limited to 'ShiftOS_TheReturn/SaveSystem.cs')
-rw-r--r--ShiftOS_TheReturn/SaveSystem.cs19
1 files changed, 12 insertions, 7 deletions
diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs
index 7678bca..4934221 100644
--- a/ShiftOS_TheReturn/SaveSystem.cs
+++ b/ShiftOS_TheReturn/SaveSystem.cs
@@ -101,15 +101,16 @@ namespace ShiftOS.Engine
if (defaultConf.ConnectToMud == true)
{
- try
+ bool guidReceived = false;
+ ServerManager.GUIDReceived += (str) =>
{
- bool guidReceived = false;
- ServerManager.GUIDReceived += (str) =>
- {
- guidReceived = true;
- Console.WriteLine("{CONNECTION_SUCCESSFUL}");
- };
+ guidReceived = true;
+ Console.WriteLine("{CONNECTION_SUCCESSFUL}");
+ };
+ try
+ {
+
ServerManager.Initiate("secondary4162.cloudapp.net", 13370);
while(guidReceived == false)
{
@@ -121,6 +122,10 @@ namespace ShiftOS.Engine
Console.WriteLine("{ERROR}: " + ex.Message);
Thread.Sleep(3000);
ServerManager.StartLANServer();
+ while (guidReceived == false)
+ {
+
+ }
}
}
else