summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/MainBase.cpp
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2013-02-26 18:28:56 -0500
committerRachel Bryk <RachelBryk@gmail.com>2013-02-26 18:28:56 -0500
commit08fe3c213ad71e903fed83edfada5a79c75f11f9 (patch)
tree886413488b7046b9f6f047fc86c4126e9ca3c95a /Source/Core/VideoCommon/Src/MainBase.cpp
parentdb838e759b8935e213fa225be88ac0bfc78c27f7 (diff)
Abort loading states from incompatible graphics backends.
Diffstat (limited to 'Source/Core/VideoCommon/Src/MainBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/MainBase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/MainBase.cpp b/Source/Core/VideoCommon/Src/MainBase.cpp
index 726ef71b38..a881bebfb2 100644
--- a/Source/Core/VideoCommon/Src/MainBase.cpp
+++ b/Source/Core/VideoCommon/Src/MainBase.cpp
@@ -186,6 +186,11 @@ void VideoBackendHardware::InitializeShared()
// Run from the CPU thread
void VideoBackendHardware::DoState(PointerWrap& p)
{
+ bool software = false;
+ p.Do(software);
+ if (p.GetMode() == PointerWrap::MODE_READ && software == true)
+ // change mode to abort load of incompatible save state.
+ p.SetMode(PointerWrap::MODE_VERIFY);
VideoCommon_DoState(p);
p.DoMarker("VideoCommon");