mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-03-23 02:25:46 -05:00
25 lines
629 B
C#
25 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)
|
|
{
|
|
}
|
|
}
|
|
}
|