From 042e515037de4ce9e6620c88c2ef7e75b6ac5903 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 27 Dec 2012 23:08:38 -0800 Subject: [PATCH] Warniof the sceIo defAction is used when stating. This is broken anyway so skipping for now. --- Core/HLE/sceIo.cpp | 8 ++++++++ Core/HLE/sceIo.h | 1 + Core/HLE/sceKernel.cpp | 1 + 3 files changed, 10 insertions(+) diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index 70af694f7..afe2c8615 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -204,6 +204,14 @@ void __IoInit() { pspFileSystem.Mount("flash1:", flash); } +void __IoDoState(PointerWrap &p) { + // TODO: defAction is hard to save, and not the right way anyway. + // Should probbly be an enum and on the FileNode anyway. + if (defAction != NULL) { + WARN_LOG(HLE, "FIXME: Savestate failure: deferred IO not saved yet."); + } +} + void __IoShutdown() { defAction = 0; defParam = 0; diff --git a/Core/HLE/sceIo.h b/Core/HLE/sceIo.h index 8015bd93d..0f87cde61 100644 --- a/Core/HLE/sceIo.h +++ b/Core/HLE/sceIo.h @@ -22,6 +22,7 @@ #include "sceKernel.h" void __IoInit(); +void __IoDoState(PointerWrap &p); void __IoShutdown(); KernelObject *__KernelFileNodeObject(); KernelObject *__KernelDirListingObject(); diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index ff3f9202f..00904fd15 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -163,6 +163,7 @@ void __KernelDoState(PointerWrap &p) __SslDoState(p); __UmdDoState(p); __UsbDoState(p); + __IoDoState(p); __PPGeDoState(p);