diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-06-17 22:27:23 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-06-17 22:27:23 +0100 |
| commit | 15f2e1a7e3ec5d85aee4a126144722feeff4682f (patch) | |
| tree | 552cfd401bdcacd216a82c8e61864ba32dd2708a /TimeHACK.Main/Program.cs | |
| parent | 331ac7f0aa424a49ff0f55fb87711a71384eb709 (diff) | |
| parent | 2f9031e0ace7ddadec9c441551ccfecf80b6df28 (diff) | |
| download | histacom2-15f2e1a7e3ec5d85aee4a126144722feeff4682f.tar.gz histacom2-15f2e1a7e3ec5d85aee4a126144722feeff4682f.tar.bz2 histacom2-15f2e1a7e3ec5d85aee4a126144722feeff4682f.zip | |
Merge pull request #97 from Alex-TIMEHACK/master
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(); + } } } |
