diff options
| author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-05-30 01:48:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 01:48:37 +0200 |
| commit | 35d91a0e58cb0b2916b7a4f138c63fcc12b71112 (patch) | |
| tree | 4735140e36567ddaefb9089e9a0d5685b5f9079f /src/Ryujinx.Memory/MemoryProtectionException.cs | |
| parent | a73a5d7e85e4008a7d8c7eb8abd6bae80b950bba (diff) | |
Linux: Automatically increase vm.max_map_count if it's too low (#4702)
* memory: Check results of pinvoke calls
* Increase vm.max_map_count when running Ryujinx
* Add SupportedOSPlatform attribute for WindowsApiException
* Revert increasing vm.max_map_count via script
* Add LinuxHelper to detect and increase vm.max_map_count
With GUI dialogs, this should be a bit more user-friendly.
* Supply arguments as a list to RunPkExec
* Add error logging in case RunPkExec() fails
* Prevent Gtk from crashing
Diffstat (limited to 'src/Ryujinx.Memory/MemoryProtectionException.cs')
| -rw-r--r-- | src/Ryujinx.Memory/MemoryProtectionException.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.Memory/MemoryProtectionException.cs b/src/Ryujinx.Memory/MemoryProtectionException.cs index 27e950a1..e5606e99 100644 --- a/src/Ryujinx.Memory/MemoryProtectionException.cs +++ b/src/Ryujinx.Memory/MemoryProtectionException.cs @@ -1,4 +1,5 @@ using System; +using System.Runtime.InteropServices; namespace Ryujinx.Memory { @@ -8,7 +9,7 @@ namespace Ryujinx.Memory { } - public MemoryProtectionException(MemoryPermission permission) : base($"Failed to set memory protection to \"{permission}\".") + public MemoryProtectionException(MemoryPermission permission) : base($"Failed to set memory protection to \"{permission}\": {Marshal.GetLastPInvokeErrorMessage()}") { } |
