mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 05:59:17 +01:00
Use the heap size rather than the heap address when calculating the
total memory usage Without this fix allocations are broken in Puyo Puyo Tetris.
This commit is contained in:
parent
f1a28f7a1c
commit
2f8a217204
@ -664,7 +664,7 @@ namespace skyline::kernel::svc {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case constant::infoState::TotalMemoryUsage:
|
case constant::infoState::TotalMemoryUsage:
|
||||||
out = state.process->heap->address + constant::DefStackSize + state.os->memory.GetProgramSize();
|
out = state.process->heap->size + constant::DefStackSize + state.os->memory.GetProgramSize();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case constant::infoState::AddressSpaceBaseAddr:
|
case constant::infoState::AddressSpaceBaseAddr:
|
||||||
|
Loading…
Reference in New Issue
Block a user