Clean up heap adjustment code

This commit is contained in:
KeatonTheBot
2025-12-27 18:53:20 -06:00
parent a2c53ed6cf
commit 2aae771ab3
@@ -181,7 +181,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
AliasRegionExtraSize = 0;
// Limit heap for games that crash or won't load with extended heaps
bool isHeapLimited = (TitleId is "0100965017338000" or "010038b015560000");
bool isHeapLimited = TitleId is "0100965017338000" or "010038b015560000";
switch (flags & ProcessCreationFlags.AddressSpaceMask)
{
@@ -254,8 +254,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
else
{
aliasRegion.Size = 0x1000000000;
heapRegion.Size = memConfig switch
{
heapRegion.Size = memConfig switch {
MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u,
MemoryConfiguration.MemoryConfiguration10GiB when !isHeapLimited => 0x280000000u,
MemoryConfiguration.MemoryConfiguration12GiB when !isHeapLimited => 0x300000000u,