Avoid illegal available_user_memory in sys_memory (#4399)

jarveson says "the comment and minus can be completely deleted/reverted" in 17cf24d0ed
This commit is contained in:
sftt 2018-05-16 00:40:45 +08:00 committed by Ani
parent 036448ac3f
commit 27004eb934

View file

@ -273,11 +273,7 @@ error_code sys_memory_container_get_size(vm::ptr<sys_memory_info_t> mem_info, u3
}
mem_info->total_user_memory = ct->size; // Total container memory
// Available container memory, minus a hidden 'buffer'
// This buffer seems to be used by the PS3 OS for c style 'mallocs'
// Todo: Research this more, even though we dont use this buffer, it helps out games when calculating
// expected memory they can use allowing them to boot
mem_info->available_user_memory = ct->size - ct->used - 0x1000000;
mem_info->available_user_memory = ct->size - ct->used; // Available container memory
return CELL_OK;
}