diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-06-17 22:25:33 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-06-17 22:25:33 +0100 |
| commit | 2f9031e0ace7ddadec9c441551ccfecf80b6df28 (patch) | |
| tree | 552cfd401bdcacd216a82c8e61864ba32dd2708a /TimeHACK.Main/Program.cs | |
| parent | 17d94fdc1dd6d03e8a5f732f2fd5a632075cffe1 (diff) | |
| download | histacom2-2f9031e0ace7ddadec9c441551ccfecf80b6df28.tar.gz histacom2-2f9031e0ace7ddadec9c441551ccfecf80b6df28.tar.bz2 histacom2-2f9031e0ace7ddadec9c441551ccfecf80b6df28.zip | |
A LOT of tweaks - more to come
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(); + } } } |
