CPU: Fix icache missing from save state

pull/1543/head
Connor McLaughlin 4 years ago
parent 99bedb0f0b
commit 9d80c48d6f

@ -175,9 +175,19 @@ bool DoState(StateWrapper& sw)
if (!GTE::DoState(sw))
return false;
if (sw.IsReading())
if (sw.GetVersion() < 48)
{
DebugAssert(sw.IsReading());
ClearICache();
}
else
{
sw.Do(&g_state.icache_tags);
sw.Do(&g_state.icache_data);
}
if (sw.IsReading())
{
if (g_settings.gpu_pgxp_enable)
PGXP::Initialize();
}

@ -2,7 +2,7 @@
#include "types.h"
static constexpr u32 SAVE_STATE_MAGIC = 0x43435544;
static constexpr u32 SAVE_STATE_VERSION = 47;
static constexpr u32 SAVE_STATE_VERSION = 48;
static constexpr u32 SAVE_STATE_MINIMUM_VERSION = 42;
static_assert(SAVE_STATE_VERSION >= SAVE_STATE_MINIMUM_VERSION);

Loading…
Cancel
Save