aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorCristian Carlesso <kentaromiura@gmail.com>2018-02-15 12:16:16 +0000
committergdkchan <gab.dark.100@gmail.com>2018-02-15 09:16:16 -0300
commit1df2c5ce7f52f34bb01e392e8bc4b00cc691614a (patch)
tree64a502df47e811ad976d69dd0c4799a777dbc987 /Program.cs
parentb73fa8eb2221a5b0597a73eb2e2eb5e50a29bc7b (diff)
Gracefully close the app on exit (#12)
* Gracefully close the app on exit * Application tear down instead of calling Environment.Exit(0); do a better tear down of the application
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index 3d4481aa..88a8a117 100644
--- a/Program.cs
+++ b/Program.cs
@@ -50,6 +50,10 @@ namespace Ryujinx
using (GLScreen Screen = new GLScreen(Ns, Renderer))
{
+ Ns.Finish += (Sender, Args) => {
+ Screen.Exit();
+ };
+
Screen.Run(60.0);
}