diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-04-24 09:21:54 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-04-24 09:21:54 -0400 |
| commit | 8da425b008b46ef90d649e55c6c0d4a0bc2b556b (patch) | |
| tree | 5b5fd33dc0274f35625a179adf0a7f93ebadeece /Source/Core/VideoCommon/Src/MainBase.cpp | |
| parent | c118c71eace1aef76687beb2e1fa6517498d84ed (diff) | |
Formatting cleanup for VideoCommon.
Block braces on new lines.
Also killed off trailing whitespace and dangling elses.
Spaced some things out to make them more readable (only in places where it looked like a bit of a clusterfuck).
Diffstat (limited to 'Source/Core/VideoCommon/Src/MainBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/MainBase.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/MainBase.cpp b/Source/Core/VideoCommon/Src/MainBase.cpp index 1472367f21..1739683562 100644 --- a/Source/Core/VideoCommon/Src/MainBase.cpp +++ b/Source/Core/VideoCommon/Src/MainBase.cpp @@ -230,9 +230,13 @@ 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"); @@ -255,7 +259,8 @@ void VideoBackendHardware::DoState(PointerWrap& p) } } -void VideoBackendHardware::CheckInvalidState() { +void VideoBackendHardware::CheckInvalidState() +{ if (m_invalid) { m_invalid = false; |
