summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoState.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2022-05-17 22:29:05 -0700
committerDentomologist <dentomologist@gmail.com>2022-05-25 13:06:41 -0700
commitf6b9acccfc66794cfc718355e777aa34914e881c (patch)
tree8c916273a264850351e47d19b19db5be46816803 /Source/Core/VideoCommon/VideoState.cpp
parent7fcc866c4118487c010116a2ea164abc867e65f4 (diff)
Common: Refactor PointerWrap
Diffstat (limited to 'Source/Core/VideoCommon/VideoState.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoState.cpp6
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();