| 1234567891011121314151617181920212223 |
- using System;
- using System.Runtime.InteropServices;
- namespace Ryujinx.Tests.Unicorn
- {
- public class UnicornException : Exception
- {
- public readonly UnicornError Error;
- internal UnicornException(UnicornError error)
- {
- Error = error;
- }
- public override string Message
- {
- get
- {
- return Marshal.PtrToStringAnsi(Native.Interface.uc_strerror(Error));
- }
- }
- }
- }
|