void __InterruptsDoState(PointerWrap &p) { int numInterrupts = PSP_NUMBER_INTERRUPTS; p.Do(numInterrupts); if (numInterrupts != PSP_NUMBER_INTERRUPTS) { ERROR_LOG(HLE, "Savestate failure: wrong number of interrupts, can't load."); return; } intState.DoState(p); PendingInterrupt pi(0, 0); p.Do(pendingInterrupts, pi); p.Do(interruptsEnabled); p.Do(inInterrupt); p.DoMarker("sceKernelInterrupt"); }
void __InterruptsDoState(PointerWrap &p) { auto s = p.Section("sceKernelInterrupt", 1); if (!s) return; int numInterrupts = PSP_NUMBER_INTERRUPTS; p.Do(numInterrupts); if (numInterrupts != PSP_NUMBER_INTERRUPTS) { p.SetError(p.ERROR_FAILURE); ERROR_LOG(SCEINTC, "Savestate failure: wrong number of interrupts, can't load."); return; } intState.DoState(p); PendingInterrupt pi(0, 0); p.Do(pendingInterrupts, pi); p.Do(interruptsEnabled); p.Do(inInterrupt); p.Do(threadBeforeInterrupt); }