From 27004eb93487d3e3ecfa8a480e093af4c714877b Mon Sep 17 00:00:00 2001 From: sftt Date: Wed, 16 May 2018 00:40:45 +0800 Subject: [PATCH] Avoid illegal available_user_memory in sys_memory (#4399) jarveson says "the comment and minus can be completely deleted/reverted" in 17cf24d0edb0f005166a128bdf40c86afde0662f --- rpcs3/Emu/Cell/lv2/sys_memory.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_memory.cpp b/rpcs3/Emu/Cell/lv2/sys_memory.cpp index a6b4e83127..fe9beb7ea2 100644 --- a/rpcs3/Emu/Cell/lv2/sys_memory.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_memory.cpp @@ -273,11 +273,7 @@ error_code sys_memory_container_get_size(vm::ptr 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; }