diff options
Diffstat (limited to 'TimeHACK.Main/Program.cs')
| -rw-r--r-- | TimeHACK.Main/Program.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index 839a0c8..673ab07 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -17,6 +17,8 @@ namespace TimeHACK { static class Program { + static System.Media.SoundPlayer stopsound; + internal static bool nightly = true; internal static string gameID; internal static TitleScreen title = null; @@ -87,5 +89,16 @@ namespace TimeHACK return ""; } } + + public static void ShutdownApplication(System.IO.UnmanagedMemoryStream audio) + { + + System.IO.Stream audioPlay = audio; + stopsound = new System.Media.SoundPlayer(audioPlay); + stopsound.Play(); + + System.Threading.Thread.Sleep(1500); + Application.Exit(); + } } } |
