From 2f9031e0ace7ddadec9c441551ccfecf80b6df28 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 17 Jun 2017 22:25:33 +0100 Subject: A LOT of tweaks - more to come --- TimeHACK.Main/Program.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'TimeHACK.Main/Program.cs') 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(); + } } } -- cgit v1.2.3