diff options
| author | Tilka <tilkax@gmail.com> | 2022-05-29 00:57:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-29 00:57:43 +0100 |
| commit | e17a4f49f5bb2fd3ca4322db82c100206e00cc15 (patch) | |
| tree | 3c71b494b3f9b9a5db726b80caf6f0f6944d34db /Source/Core/VideoCommon/VideoState.cpp | |
| parent | 3dbc18060bc6f15eeaa3c0e4de907f8a06efa2bf (diff) | |
| parent | c8e20c569b7deae97b411a6eea5c846f342bbf17 (diff) | |
Merge pull request #10668 from Dentomologist/convert_pointerwrap_mode_to_enum_class
Convert PointerWrap::Mode to enum class
Diffstat (limited to 'Source/Core/VideoCommon/VideoState.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoState.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VideoState.cpp b/Source/Core/VideoCommon/VideoState.cpp index c348649da5..538c3d0904 100644 --- a/Source/Core/VideoCommon/VideoState.cpp +++ b/Source/Core/VideoCommon/VideoState.cpp @@ -27,10 +27,10 @@ void VideoCommon_DoState(PointerWrap& p) bool software = false; p.Do(software); - if (p.GetMode() == PointerWrap::MODE_READ && software == true) + if (p.IsReadMode() && software == true) { // change mode to abort load of incompatible save state. - p.SetMode(PointerWrap::MODE_VERIFY); + p.SetVerifyMode(); } // BP Memory @@ -86,7 +86,7 @@ void VideoCommon_DoState(PointerWrap& p) p.DoMarker("Renderer"); // Refresh state. - if (p.GetMode() == PointerWrap::MODE_READ) + if (p.IsReadMode()) { // Inform backend of new state from registers. BPReload(); |
