mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 15:19:50 -06:00
This reverts commit 85dbb9559a
.
This commit is contained in:
@ -2,18 +2,18 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||
{
|
||||
class KMemoryBlockAllocator
|
||||
{
|
||||
private ulong _capacityElements;
|
||||
private ulong CapacityElements;
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public KMemoryBlockAllocator(ulong capacityElements)
|
||||
public KMemoryBlockAllocator(ulong CapacityElements)
|
||||
{
|
||||
_capacityElements = capacityElements;
|
||||
this.CapacityElements = CapacityElements;
|
||||
}
|
||||
|
||||
public bool CanAllocate(int count)
|
||||
public bool CanAllocate(int Count)
|
||||
{
|
||||
return (ulong)(Count + count) <= _capacityElements;
|
||||
return (ulong)(this.Count + Count) <= CapacityElements;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user