12 GiB heap crash workaround

Using resolution mods, heaps past 8 GiB work in some games (like LoZ: TotK) and not in others (like SMP Jamboree). Setting the heap to a hard limit of 8 GiB on the 10 & 12 GiB DRAM options seems to be the safe bet right now until a better solution is found.
This commit is contained in:
KeatonTheBot
2025-10-16 15:38:34 -05:00
parent 1e2fd6f4c2
commit f362e33293
2 changed files with 16 additions and 10 deletions
@@ -881,7 +881,7 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
[Svc(1)]
public Result SetHeapSize([PointerSized] out ulong address, [PointerSized] ulong size)
{
if ((size & 0xfffffffd001fffff) != 0)
if ((size & 0xfffffffe001fffff) != 0)
{
address = 0;