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
This commit is contained in:
Cristian Carlesso 2018-02-15 12:16:16 +00:00 committed by gdkchan
parent b73fa8eb22
commit 1df2c5ce7f
6 changed files with 31 additions and 3 deletions

View file

@ -50,6 +50,10 @@ namespace Ryujinx
using (GLScreen Screen = new GLScreen(Ns, Renderer))
{
Ns.Finish += (Sender, Args) => {
Screen.Exit();
};
Screen.Run(60.0);
}