 326777ca4a
			
		
	
	
		326777ca4a
		
	
	
	
	
		
			
			* Ryujinx.Tests: Add unicorn to test framework * CpuTestSimdArithmetic: Comment out inaccurate results
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			482 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			482 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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));
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |