aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Cpu/Tracking/CpuRegionHandle.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Cpu/Tracking/CpuRegionHandle.cs')
-rw-r--r--Ryujinx.Cpu/Tracking/CpuRegionHandle.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Cpu/Tracking/CpuRegionHandle.cs b/Ryujinx.Cpu/Tracking/CpuRegionHandle.cs
index d2a28749..e766460f 100644
--- a/Ryujinx.Cpu/Tracking/CpuRegionHandle.cs
+++ b/Ryujinx.Cpu/Tracking/CpuRegionHandle.cs
@@ -28,5 +28,10 @@ namespace Ryujinx.Cpu.Tracking
public void Reprotect(bool asDirty = false) => _impl.Reprotect(asDirty);
public bool OverlapsWith(ulong address, ulong size) => _impl.OverlapsWith(address, size);
+
+ public bool RangeEquals(CpuRegionHandle other)
+ {
+ return _impl.RealAddress == other._impl.RealAddress && _impl.RealSize == other._impl.RealSize;
+ }
}
}