From 9c6cfeeb262c3292f4adfae49f2ed838f378b786 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 10 Mar 2013 23:52:11 -0700 Subject: [PATCH] Fix logging during savestate. --- Core/HLE/sceKernel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index 572581b67e..6891cb3e07 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -20,6 +20,7 @@ #include "../MIPS/MIPSCodeUtils.h" #include "../MIPS/MIPSInt.h" +#include "Common/LogManager.h" #include "../FileSystems/FileSystem.h" #include "../FileSystems/MetaFileSystem.h" #include "../PSPLoaders.h" @@ -29,7 +30,6 @@ #include "../../GPU/GPUInterface.h" #include "../../GPU/GPUState.h" - #include "__sceAudio.h" #include "sceAtrac.h" #include "sceAudio.h" @@ -442,7 +442,10 @@ void KernelObjectPool::DoState(PointerWrap &p) ERROR_LOG(HLE, "Unable to load state: different kernel object storage."); if (p.mode == p.MODE_READ) + { + hleCurrentThreadName = NULL; kernelObjects.Clear(); + } p.DoArray(occupied, maxCount); for (int i = 0; i < maxCount; ++i)