1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00

Break: don't crash when bit 31 is set (#444)

This commit is contained in:
Thomas Guillemard 2018-10-08 20:53:08 +02:00 committed by GitHub
parent 74ca82c534
commit 65c67bb4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,9 +247,17 @@ namespace Ryujinx.HLE.HOS.Kernel
long Unknown = (long)ThreadState.X1;
long Info = (long)ThreadState.X2;
Process.PrintStackTrace(ThreadState);
if ((Reason & (1 << 31)) == 0)
{
Process.PrintStackTrace(ThreadState);
throw new GuestBrokeExecutionException();
throw new GuestBrokeExecutionException();
}
else
{
Device.Log.PrintInfo(LogClass.KernelSvc, "Debugger triggered");
Process.PrintStackTrace(ThreadState);
}
}
private void SvcOutputDebugString(AThreadState ThreadState)