From 76f3b1b3a4637ec72abfbb8cbc0679f2e0ca838f Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 10 Jun 2018 21:46:42 -0300 Subject: Rename Ryujinx.Core to Ryujinx.HLE and add a separate project for a future LLE implementation --- .../OsHle/Exceptions/GuestBrokeExecutionException.cs | 11 +++++++++++ .../OsHle/Exceptions/UndefinedInstructionException.cs | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Ryujinx.HLE/OsHle/Exceptions/GuestBrokeExecutionException.cs create mode 100644 Ryujinx.HLE/OsHle/Exceptions/UndefinedInstructionException.cs (limited to 'Ryujinx.HLE/OsHle/Exceptions') diff --git a/Ryujinx.HLE/OsHle/Exceptions/GuestBrokeExecutionException.cs b/Ryujinx.HLE/OsHle/Exceptions/GuestBrokeExecutionException.cs new file mode 100644 index 00000000..2ed7f19e --- /dev/null +++ b/Ryujinx.HLE/OsHle/Exceptions/GuestBrokeExecutionException.cs @@ -0,0 +1,11 @@ +using System; + +namespace Ryujinx.HLE.OsHle.Exceptions +{ + public class GuestBrokeExecutionException : Exception + { + private const string ExMsg = "The guest program broke execution!"; + + public GuestBrokeExecutionException() : base(ExMsg) { } + } +} \ No newline at end of file diff --git a/Ryujinx.HLE/OsHle/Exceptions/UndefinedInstructionException.cs b/Ryujinx.HLE/OsHle/Exceptions/UndefinedInstructionException.cs new file mode 100644 index 00000000..d9f0b8cf --- /dev/null +++ b/Ryujinx.HLE/OsHle/Exceptions/UndefinedInstructionException.cs @@ -0,0 +1,13 @@ +using System; + +namespace Ryujinx.HLE.OsHle.Exceptions +{ + public class UndefinedInstructionException : Exception + { + private const string ExMsg = "The instruction at 0x{0:x16} (opcode 0x{1:x8}) is undefined!"; + + public UndefinedInstructionException() : base() { } + + public UndefinedInstructionException(long Position, int OpCode) : base(string.Format(ExMsg, Position, OpCode)) { } + } +} \ No newline at end of file -- cgit v1.2.3