mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-06 19:01:36 +03:00
Abort loading states from incompatible graphics backends.
This commit is contained in:
parent
db838e759b
commit
08fe3c213a
3 changed files with 13 additions and 1 deletions
|
@ -186,6 +186,11 @@ void VideoBackendHardware::InitializeShared()
|
|||
// Run from the CPU thread
|
||||
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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue