aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Program.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-12 19:17:47 -0400
committerMichael <[email protected]>2017-05-12 19:17:47 -0400
commitbded9d1250575e6b9824be9048ac7ac8669a303b (patch)
treea0ef631584332088d243bacf4c87f959a821f3a3 /ShiftOS.WinForms/Program.cs
parent2cede571ca23806b68344d9984c11eedaaea76e1 (diff)
downloadshiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.tar.gz
shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.tar.bz2
shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.zip
ShiftOS is a hydra.
You pop one bug off, 2,000 more grow in its place.
Diffstat (limited to 'ShiftOS.WinForms/Program.cs')
-rw-r--r--ShiftOS.WinForms/Program.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Program.cs b/ShiftOS.WinForms/Program.cs
index ad8fc83..256894d 100644
--- a/ShiftOS.WinForms/Program.cs
+++ b/ShiftOS.WinForms/Program.cs
@@ -49,6 +49,19 @@ namespace ShiftOS.WinForms
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//if ANYONE puts code before those two winforms config lines they will be declared a drunky. - Michael
+ SaveSystem.PreDigitalSocietyConnection += () =>
+ {
+ Action completed = null;
+ completed = () =>
+ {
+ SaveSystem.Ready = true;
+ Engine.AudioManager.PlayCompleted -= completed;
+ AudioManager.StartAmbientLoop();
+ };
+ Engine.AudioManager.PlayCompleted += completed;
+ Engine.AudioManager.PlayStream(Properties.Resources.dial_up_modem_02);
+
+ };
LoginManager.Init(new GUILoginFrontend());
CrashHandler.SetGameMetadata(Assembly.GetExecutingAssembly());
SkinEngine.SetIconProber(new ShiftOSIconProvider());