mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Config: Add an option to skip saving texture cache to save state
This commit is contained in:
parent
63358adfb1
commit
53e30c06e8
7 changed files with 34 additions and 11 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "Common/ChunkFile.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "VideoCommon/AbstractFramebuffer.h"
|
||||
#include "VideoCommon/AbstractPipeline.h"
|
||||
#include "VideoCommon/AbstractShader.h"
|
||||
|
@ -862,6 +863,11 @@ void FramebufferManager::DoState(PointerWrap& p)
|
|||
{
|
||||
FlushEFBPokes();
|
||||
|
||||
bool save_efb_state = Config::Get(Config::GFX_SAVE_TEXTURE_CACHE_TO_STATE);
|
||||
p.Do(save_efb_state);
|
||||
if (!save_efb_state)
|
||||
return;
|
||||
|
||||
if (p.GetMode() == PointerWrap::MODE_WRITE || p.GetMode() == PointerWrap::MODE_MEASURE)
|
||||
DoSaveState(p);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue