From 104e98bc270889eca356fabd2642f9249eef3f81 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 21 Nov 2018 18:13:20 -0300 Subject: [PATCH] Use KMemoryBlockSize const from KMemoryManager --- Ryujinx.HLE/HOS/Kernel/KMemoryBlockAllocator.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Ryujinx.HLE/HOS/Kernel/KMemoryBlockAllocator.cs b/Ryujinx.HLE/HOS/Kernel/KMemoryBlockAllocator.cs index 0fbac1f4cb..924fcbff39 100644 --- a/Ryujinx.HLE/HOS/Kernel/KMemoryBlockAllocator.cs +++ b/Ryujinx.HLE/HOS/Kernel/KMemoryBlockAllocator.cs @@ -2,8 +2,6 @@ namespace Ryujinx.HLE.HOS.Kernel { class KMemoryBlockAllocator { - private const int KMemoryBlockSize = 0x40; - private ulong Size; public int Count { get; set; } @@ -15,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Kernel public bool CanAllocate(int Count) { - return (ulong)(this.Count + Count) * KMemoryBlockSize <= Size; + return (ulong)(this.Count + Count) * KMemoryManager.KMemoryBlockSize <= Size; } } } \ No newline at end of file