From d3e566935ab9aeaa1c7219f5582acec7b0709f88 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 6 Oct 2013 20:03:17 -0700 Subject: [PATCH] Avoid load state crash if kernel objects fail. --- Core/HLE/sceKernel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index 752a21cb8a..222054052b 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -548,6 +548,8 @@ void KernelObjectPool::DoState(PointerWrap &p) p.Do(type); } pool[i]->DoState(p); + if (p.error >= p.ERROR_FAILURE) + break; } }