mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Save state of a bunch of small modules.
This commit is contained in:
1 parent
1768365c13
commit
cd1d4367bf
17 files changed
+161
-30
No files matched your search
@@ -284,6 +284,30 @@ void __CtrlInit()
|
||||
memcpy(&ctrlBufs[i], &ctrlCurrent, sizeof(_ctrl_data));
|
||||
}
|
||||
|
||||
void __CtrlDoState(PointerWrap &p)
|
||||
{
|
||||
p.Do(analogEnabled);
|
||||
p.Do(ctrlLatchBufs);
|
||||
p.Do(ctrlOldButtons);
|
||||
|
||||
p.DoVoid(ctrlBufs, sizeof(ctrlBufs));
|
||||
p.Do(ctrlCurrent);
|
||||
p.Do(ctrlBuf);
|
||||
p.Do(ctrlBufRead);
|
||||
p.Do(latch);
|
||||
|
||||
p.Do(ctrlIdleReset);
|
||||
p.Do(ctrlIdleBack);
|
||||
|
||||
p.Do(ctrlCycle);
|
||||
|
||||
p.Do(waitingThreads);
|
||||
|
||||
p.Do(ctrlTimer);
|
||||
CoreTiming::RestoreRegisterEvent(ctrlTimer, "CtrlSampleTimer", __CtrlTimerUpdate);
|
||||
p.DoMarker("sceCtrl");
|
||||
}
|
||||
|
||||
void __CtrlShutdown()
|
||||
{
|
||||
waitingThreads.clear();
|
||||
|
||||
Reference in new issue
Block a user