Upgrade savestates correctly for the brightnessLevel addition.

This commit is contained in:
Henrik Rydgård 2014-02-04 17:10:46 +01:00
parent 441c600651
commit 9bea246509

View File

@ -188,7 +188,7 @@ void __DisplayInit() {
}
void __DisplayDoState(PointerWrap &p) {
auto s = p.Section("sceDisplay", 1, 3);
auto s = p.Section("sceDisplay", 1, 4);
if (!s)
return;
@ -209,7 +209,9 @@ void __DisplayDoState(PointerWrap &p) {
p.Do(mode);
p.Do(resumeMode);
p.Do(holdMode);
p.Do(brightnessLevel);
if (s >= 4) {
p.Do(brightnessLevel);
}
p.Do(width);
p.Do(height);
WaitVBlankInfo wvi(0);