Fix some missing things / bugs in save states.

This commit is contained in:
Unknown W. Brackets committed 2012-12-29 02:56:56 -08:00
1 parent ec080eb2b6
commit 0edbcdc955
7 files changed
+42 -23

No files matched your search

+7 -1
View File
@@ -55,6 +55,12 @@ struct NativeFPL
//FPL - Fixed Length Dynamic Memory Pool - every item has the same length
struct FPL : public KernelObject
{
FPL() : blocks(NULL) {}
~FPL() {
if (blocks != NULL) {
delete [] blocks;
}
}
const char *GetName() {return nf.name;}
const char *GetTypeName() {return "FPL";}
static u32 GetMissingErrorCode() { return SCE_KERNEL_ERROR_UNKNOWN_FPLID; }
@@ -400,7 +406,7 @@ public:
virtual void DoState(PointerWrap &p)
{
p.Do(address);
p.Do(name);
p.DoArray(name, sizeof(name));
p.DoMarker("PMB");
}