mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 08:05:47 +00:00
2989c163a8
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
24 lines
629 B
C#
24 lines
629 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.Memory
|
|
{
|
|
class MemoryProtectionException : Exception
|
|
{
|
|
public MemoryProtectionException()
|
|
{
|
|
}
|
|
|
|
public MemoryProtectionException(MemoryPermission permission) : base($"Failed to set memory protection to \"{permission}\": {Marshal.GetLastPInvokeErrorMessage()}")
|
|
{
|
|
}
|
|
|
|
public MemoryProtectionException(string message) : base(message)
|
|
{
|
|
}
|
|
|
|
public MemoryProtectionException(string message, Exception innerException) : base(message, innerException)
|
|
{
|
|
}
|
|
}
|
|
}
|