Use KMemoryBlockSize const from KMemoryManager
This commit is contained in:
parent
dbcba511b2
commit
104e98bc27
1 changed files with 1 additions and 3 deletions
|
@ -2,8 +2,6 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KMemoryBlockAllocator
|
class KMemoryBlockAllocator
|
||||||
{
|
{
|
||||||
private const int KMemoryBlockSize = 0x40;
|
|
||||||
|
|
||||||
private ulong Size;
|
private ulong Size;
|
||||||
|
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
@ -15,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
public bool CanAllocate(int Count)
|
public bool CanAllocate(int Count)
|
||||||
{
|
{
|
||||||
return (ulong)(this.Count + Count) * KMemoryBlockSize <= Size;
|
return (ulong)(this.Count + Count) * KMemoryManager.KMemoryBlockSize <= Size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue