Gracefully close the app on exit

This commit is contained in:
Cristian Carlesso 2018-02-12 21:10:41 +09:00
parent 598d1fd3ae
commit 69083db0c4
2 changed files with 6 additions and 0 deletions

View file

@ -15,6 +15,7 @@ namespace Ryujinx.OsHle.Svc
{ 0x03, SvcSetMemoryAttribute },
{ 0x04, SvcMapMemory },
{ 0x06, SvcQueryMemory },
{ 0x07, SvcExitProcess },
{ 0x08, SvcCreateThread },
{ 0x09, SvcStartThread },
{ 0x0b, SvcSleepThread },

View file

@ -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;