Use KMemoryBlockSize const from KMemoryManager

This commit is contained in:
gdkchan 2018-11-21 18:13:20 -03:00
commit 104e98bc27

View file

@ -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;
} }
} }
} }