From 9bea246509453e8ad464950aff648188550b7f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 4 Feb 2014 17:10:46 +0100 Subject: [PATCH] Upgrade savestates correctly for the brightnessLevel addition. --- Core/HLE/sceDisplay.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index 9577212ea3..b00e0cfc73 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -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);