mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-02 09:37:09 +02:00
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:
parent
3faf3f6361
commit
82733d4fa7
6 changed files with 31 additions and 3 deletions
|
@ -24,6 +24,15 @@ namespace Ryujinx
|
|||
VFs = new VirtualFs();
|
||||
}
|
||||
|
||||
public event EventHandler Finish;
|
||||
internal virtual void OnFinish(EventArgs e)
|
||||
{
|
||||
EventHandler Handler = Finish;
|
||||
if (Handler != null)
|
||||
{
|
||||
Handler(this, e);
|
||||
}
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue