Merge pull request #8652 from unknownbrackets/savestates

Fix some old savestates
This commit is contained in:
Henrik Rydgård 2016-03-21 17:05:58 +01:00
commit e8758c1ea0

View File

@ -217,6 +217,12 @@ void __DisplayInit() {
__KernelRegisterWaitTypeFuncs(WAITTYPE_VBLANK, __DisplayVblankBeginCallback, __DisplayVblankEndCallback);
}
struct GPUStatistics_v0 {
int firstInts[11];
double msProcessingDisplayLists;
int moreInts[15];
};
void __DisplayDoState(PointerWrap &p) {
auto s = p.Section("sceDisplay", 1, 6);
if (!s)
@ -283,12 +289,8 @@ void __DisplayDoState(PointerWrap &p) {
}
#endif
if (s < 6) {
p.Do(gpuStats);
// Removed values from gpuStats.
int ignore = 42;
p.Do(ignore);
p.Do(ignore);
GPUStatistics_v0 oldStats;
p.Do(oldStats);
}
gpu->DoState(p);