mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-09 03:58:06 +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
|
@ -41,6 +41,7 @@
|
|||
#include "Core.h"
|
||||
#include "OpcodeDecoder.h"
|
||||
#include "SWVertexLoader.h"
|
||||
#include "SWStatistics.h"
|
||||
|
||||
#define VSYNC_ENABLED 0
|
||||
|
||||
|
@ -97,6 +98,11 @@ bool VideoSoftware::Initialize(void *&window_handle)
|
|||
|
||||
void VideoSoftware::DoState(PointerWrap& p)
|
||||
{
|
||||
bool software = true;
|
||||
p.Do(software);
|
||||
if (p.GetMode() == PointerWrap::MODE_READ && software == false)
|
||||
// change mode to abort load of incompatible save state.
|
||||
p.SetMode(PointerWrap::MODE_VERIFY);
|
||||
// TODO: incomplete
|
||||
SWCommandProcessor::DoState(p);
|
||||
SWPixelEngine::DoState(p);
|
||||
|
@ -105,6 +111,7 @@ void VideoSoftware::DoState(PointerWrap& p)
|
|||
Clipper::DoState(p);
|
||||
p.Do(swxfregs);
|
||||
p.Do(bpmem);
|
||||
p.Do(swstats);
|
||||
|
||||
// CP Memory
|
||||
p.DoArray(arraybases, 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue