mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-07 12:06:26 -05: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:

committed by
gdkchan

parent
b73fa8eb22
commit
1df2c5ce7f
@@ -8,7 +8,6 @@ namespace Ryujinx.OsHle.Svc
|
||||
partial class SvcHandler
|
||||
{
|
||||
private delegate void SvcFunc(ARegisters Registers);
|
||||
|
||||
private Dictionary<int, SvcFunc> SvcFuncs;
|
||||
|
||||
private Switch Ns;
|
||||
@@ -25,6 +24,7 @@ namespace Ryujinx.OsHle.Svc
|
||||
{ 0x03, SvcSetMemoryAttribute },
|
||||
{ 0x04, SvcMapMemory },
|
||||
{ 0x06, SvcQueryMemory },
|
||||
{ 0x07, SvcExitProcess },
|
||||
{ 0x08, SvcCreateThread },
|
||||
{ 0x09, SvcStartThread },
|
||||
{ 0x0b, SvcSleepThread },
|
||||
|
@@ -9,6 +9,8 @@ namespace Ryujinx.OsHle.Svc
|
||||
{
|
||||
partial class SvcHandler
|
||||
{
|
||||
private void SvcExitProcess(ARegisters Registers) => Ns.Os.ExitProcess(Registers.ProcessId);
|
||||
|
||||
private void SvcCloseHandle(ARegisters Registers)
|
||||
{
|
||||
int Handle = (int)Registers.X0;
|
||||
|
Reference in New Issue
Block a user