aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Memory/MemoryManagement.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-06-24 02:46:04 +0200
committerGitHub <noreply@github.com>2023-06-24 02:46:04 +0200
commit7d160e98fde05e0b9b542dc04ea72dc34994bc5b (patch)
tree958d5f376a5a2421a7a58b21080eb454f9c744c1 /src/Ryujinx.Memory/MemoryManagement.cs
parentbf96bc84a82f2c4ab771b2ab0c610f86d00b1adf (diff)
MemoryManagement: Change return types for Commit/Decommit to void (#5325)
* Replace return type with void for Commit/Decommit * Small cleanup
Diffstat (limited to 'src/Ryujinx.Memory/MemoryManagement.cs')
-rw-r--r--src/Ryujinx.Memory/MemoryManagement.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Ryujinx.Memory/MemoryManagement.cs b/src/Ryujinx.Memory/MemoryManagement.cs
index c4b5ac4c..7acf8345 100644
--- a/src/Ryujinx.Memory/MemoryManagement.cs
+++ b/src/Ryujinx.Memory/MemoryManagement.cs
@@ -36,15 +36,15 @@ namespace Ryujinx.Memory
}
}
- public static bool Commit(IntPtr address, ulong size, bool forJit)
+ public static void Commit(IntPtr address, ulong size, bool forJit)
{
if (OperatingSystem.IsWindows())
{
- return MemoryManagementWindows.Commit(address, (IntPtr)size);
+ MemoryManagementWindows.Commit(address, (IntPtr)size);
}
else if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS())
{
- return MemoryManagementUnix.Commit(address, size, forJit);
+ MemoryManagementUnix.Commit(address, size, forJit);
}
else
{
@@ -52,15 +52,15 @@ namespace Ryujinx.Memory
}
}
- public static bool Decommit(IntPtr address, ulong size)
+ public static void Decommit(IntPtr address, ulong size)
{
if (OperatingSystem.IsWindows())
{
- return MemoryManagementWindows.Decommit(address, (IntPtr)size);
+ MemoryManagementWindows.Decommit(address, (IntPtr)size);
}
else if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS())
{
- return MemoryManagementUnix.Decommit(address, size);
+ MemoryManagementUnix.Decommit(address, size);
}
else
{