mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Add basic DoState() to tertiary kernel objects.
This commit is contained in:
1 parent
a2f4c83c90
commit
991243fffd
8 files changed
+85
-12
No files matched your search
@@ -56,11 +56,6 @@ struct MsgPipe : public KernelObject
|
||||
static u32 GetMissingErrorCode() { return SCE_KERNEL_ERROR_UNKNOWN_MPPID; }
|
||||
int GetIDType() const { return SCE_KERNEL_TMID_Mpipe; }
|
||||
|
||||
NativeMsgPipe nmp;
|
||||
|
||||
std::vector<MsgPipeWaitingThread> sendWaitingThreads;
|
||||
std::vector<MsgPipeWaitingThread> receiveWaitingThreads;
|
||||
|
||||
void AddWaitingThread(std::vector<MsgPipeWaitingThread> &list, SceUID id, u32 addr, u32 size, int waitMode, u32 transferredBytesAddr, bool usePrio)
|
||||
{
|
||||
MsgPipeWaitingThread thread = { id, addr, size, size, waitMode, transferredBytesAddr };
|
||||
@@ -150,6 +145,20 @@ struct MsgPipe : public KernelObject
|
||||
}
|
||||
}
|
||||
|
||||
virtual void DoState(PointerWrap &p)
|
||||
{
|
||||
p.Do(nmp);
|
||||
p.Do(sendWaitingThreads);
|
||||
p.Do(receiveWaitingThreads);
|
||||
p.DoArray(buffer, nmp.bufSize);
|
||||
p.DoMarker("MsgPipe");
|
||||
}
|
||||
|
||||
NativeMsgPipe nmp;
|
||||
|
||||
std::vector<MsgPipeWaitingThread> sendWaitingThreads;
|
||||
std::vector<MsgPipeWaitingThread> receiveWaitingThreads;
|
||||
|
||||
u8 *buffer;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user