mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Add a mechanism to restore event callback ptrs.
Ugh, more duplicates. Maybe can find a good way to refactor.
This commit is contained in:
1 parent
570e8c812b
commit
fbe4fd396e
5 files changed
+37
-4
No files matched your search
@@ -22,6 +22,7 @@
|
||||
#include "Core.h"
|
||||
#include "CoreTiming.h"
|
||||
#include "HLE/sceKernel.h"
|
||||
#include "HW/MemoryStick.h"
|
||||
#include "MemMap.h"
|
||||
|
||||
namespace SaveState
|
||||
@@ -57,11 +58,16 @@ namespace SaveState
|
||||
// This is where the magic happens.
|
||||
void SaveStart::DoState(PointerWrap &p)
|
||||
{
|
||||
// Gotta do CoreTiming first since we'll restore into it.
|
||||
// TODO CoreTiming
|
||||
|
||||
// This save state even saves its own state.
|
||||
p.Do(timer);
|
||||
CoreTiming::RestoreEvent(timer, "SaveState", Process);
|
||||
p.DoMarker("SaveState");
|
||||
|
||||
Memory::DoState(p);
|
||||
MemoryStick_DoState(p);
|
||||
__KernelDoState(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user