diff options
| author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-06-24 02:46:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-24 02:46:04 +0200 |
| commit | 7d160e98fde05e0b9b542dc04ea72dc34994bc5b (patch) | |
| tree | 958d5f376a5a2421a7a58b21080eb454f9c744c1 /src/Ryujinx.Cpu | |
| parent | bf96bc84a82f2c4ab771b2ab0c610f86d00b1adf (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.Cpu')
| -rw-r--r-- | src/Ryujinx.Cpu/Jit/JitMemoryBlock.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.Cpu/Jit/JitMemoryBlock.cs b/src/Ryujinx.Cpu/Jit/JitMemoryBlock.cs index 327fb303..61e27eaf 100644 --- a/src/Ryujinx.Cpu/Jit/JitMemoryBlock.cs +++ b/src/Ryujinx.Cpu/Jit/JitMemoryBlock.cs @@ -15,10 +15,10 @@ namespace Ryujinx.Cpu.Jit _impl = new MemoryBlock(size, flags); } - public bool Commit(ulong offset, ulong size) => _impl.Commit(offset, size); + public void Commit(ulong offset, ulong size) => _impl.Commit(offset, size); public void MapAsRx(ulong offset, ulong size) => _impl.Reprotect(offset, size, MemoryPermission.ReadAndExecute); public void MapAsRwx(ulong offset, ulong size) => _impl.Reprotect(offset, size, MemoryPermission.ReadWriteExecute); public void Dispose() => _impl.Dispose(); } -} +}
\ No newline at end of file |
