diff options
| author | lempamo <[email protected]> | 2017-06-20 17:21:27 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-06-20 17:21:27 -0400 |
| commit | fc728100a39bff88215b0b21602afbda9ff6b00b (patch) | |
| tree | 5d99edd1c5320dc47872a829306a02641577543c /TimeHACK.Main/Program.cs | |
| parent | e83df06641d130fb979b562ab74e284f5952c9e0 (diff) | |
| parent | ffc4a480f23e38d58a3b4c940e3045237835a342 (diff) | |
| download | histacom2-fc728100a39bff88215b0b21602afbda9ff6b00b.tar.gz histacom2-fc728100a39bff88215b0b21602afbda9ff6b00b.tar.bz2 histacom2-fc728100a39bff88215b0b21602afbda9ff6b00b.zip | |
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
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(); + } } } |
