mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 00:18:56 +02:00
Clean up heap adjustment code
This commit is contained in:
@@ -181,7 +181,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||||||
AliasRegionExtraSize = 0;
|
AliasRegionExtraSize = 0;
|
||||||
|
|
||||||
// Limit heap for games that crash or won't load with extended heaps
|
// 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)
|
switch (flags & ProcessCreationFlags.AddressSpaceMask)
|
||||||
{
|
{
|
||||||
@@ -254,8 +254,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
aliasRegion.Size = 0x1000000000;
|
aliasRegion.Size = 0x1000000000;
|
||||||
heapRegion.Size = memConfig switch
|
heapRegion.Size = memConfig switch {
|
||||||
{
|
|
||||||
MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u,
|
MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u,
|
||||||
MemoryConfiguration.MemoryConfiguration10GiB when !isHeapLimited => 0x280000000u,
|
MemoryConfiguration.MemoryConfiguration10GiB when !isHeapLimited => 0x280000000u,
|
||||||
MemoryConfiguration.MemoryConfiguration12GiB when !isHeapLimited => 0x300000000u,
|
MemoryConfiguration.MemoryConfiguration12GiB when !isHeapLimited => 0x300000000u,
|
||||||
|
|||||||
Reference in New Issue
Block a user