mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Savestates: Fix optional_savestate_state use
This commit is contained in:
parent
c7c2baae03
commit
5dbeb68ed2
2 changed files with 13 additions and 4 deletions
|
|
@ -2364,9 +2364,14 @@ void ppu_thread::serialize_common(utils::serial& ar)
|
|||
|
||||
ar(optional_savestate_state, vr);
|
||||
|
||||
if (optional_savestate_state->data.empty())
|
||||
if (!ar.is_writing())
|
||||
{
|
||||
optional_savestate_state->clear();
|
||||
if (optional_savestate_state->data.empty())
|
||||
{
|
||||
optional_savestate_state->clear();
|
||||
}
|
||||
|
||||
optional_savestate_state->set_reading_state();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue