mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
SaveState: Split Do() into a separate header.
This commit is contained in:
1 parent
dd79d33f14
commit
4b4e3432cd
105 files changed
+1630
-1556
No files matched your search
@@ -16,6 +16,8 @@
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include <algorithm>
|
||||
#include "Common/ChunkFile.h"
|
||||
#include "Common/ChunkFileDo.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/MemMapHelpers.h"
|
||||
#include "Core/Reporting.h"
|
||||
@@ -24,7 +26,6 @@
|
||||
#include "Core/HLE/sceKernelMemory.h"
|
||||
#include "Core/HLE/sceKernelVTimer.h"
|
||||
#include "Core/HLE/HLE.h"
|
||||
#include "Common/ChunkFile.h"
|
||||
|
||||
static int vtimerTimer = -1;
|
||||
static SceUID runningVTimer = 0;
|
||||
@@ -54,10 +55,10 @@ struct VTimer : public KernelObject {
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
p.Do(nvt);
|
||||
Do(p, nvt);
|
||||
if (s < 2) {
|
||||
u32 memoryPtr;
|
||||
p.Do(memoryPtr);
|
||||
Do(p, memoryPtr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,12 +193,12 @@ void __KernelVTimerDoState(PointerWrap &p) {
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
p.Do(vtimerTimer);
|
||||
p.Do(vtimers);
|
||||
Do(p, vtimerTimer);
|
||||
Do(p, vtimers);
|
||||
CoreTiming::RestoreRegisterEvent(vtimerTimer, "VTimer", __KernelTriggerVTimer);
|
||||
|
||||
if (s >= 2)
|
||||
p.Do(runningVTimer);
|
||||
Do(p, runningVTimer);
|
||||
else
|
||||
runningVTimer = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user