Include SRAM in savestates

This fixes an issue with saving after loading a savestate in Pokemon Colosseum.
This commit is contained in:
Techjar 2018-09-03 17:10:22 -04:00
parent cf36877608
commit 0eb9ac7777
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ CEXIIPL::~CEXIIPL()
}
void CEXIIPL::DoState(PointerWrap& p)
{
p.Do(g_SRAM.rtc);
p.Do(g_SRAM);
p.Do(g_rtc_flags);
p.Do(m_command);
p.Do(m_command_bytes_received);

View File

@ -74,7 +74,7 @@ static Common::Event g_compressAndDumpStateSyncEvent;
static std::thread g_save_thread;
// Don't forget to increase this after doing changes on the savestate system
constexpr u32 STATE_VERSION = 116; // Last changed in PR 8879
constexpr u32 STATE_VERSION = 117; // Last changed in PR 7396
// Maps savestate versions to Dolphin versions.
// Versions after 42 don't need to be added to this list,