Add a mechanism to restore event callback ptrs.

Ugh, more duplicates.  Maybe can find a good way to refactor.
This commit is contained in:
Unknown W. Brackets committed 2012-12-28 13:55:24 -08:00
1 parent 570e8c812b
commit fbe4fd396e
5 files changed
+37 -4

No files matched your search

+6
View File
@@ -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);
}