mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 01:08:34 +00:00
Common: Refactor PointerWrap
This commit is contained in:
parent
7fcc866c41
commit
f6b9acccfc
38 changed files with 108 additions and 106 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue