Gracefully close the app on exit
This commit is contained in:
parent
598d1fd3ae
commit
69083db0c4
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,7 @@ namespace Ryujinx.OsHle.Svc
|
|||
{ 0x03, SvcSetMemoryAttribute },
|
||||
{ 0x04, SvcMapMemory },
|
||||
{ 0x06, SvcQueryMemory },
|
||||
{ 0x07, SvcExitProcess },
|
||||
{ 0x08, SvcCreateThread },
|
||||
{ 0x09, SvcStartThread },
|
||||
{ 0x0b, SvcSleepThread },
|
||||
|
|
|
@ -8,6 +8,11 @@ namespace Ryujinx.OsHle.Svc
|
|||
{
|
||||
partial class SvcHandler
|
||||
{
|
||||
private static void SvcExitProcess(Switch Ns, ARegisters Registers, AMemory Memory)
|
||||
{
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
private static void SvcCloseHandle(Switch Ns, ARegisters Registers, AMemory Memory)
|
||||
{
|
||||
int Handle = (int)Registers.X0;
|
||||
|
|
Loading…
Add table
Reference in a new issue