From 88f1edd48d845f408f34403baf57b6517d011e0a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 25 Mar 2020 01:49:20 +1000 Subject: [PATCH] System: Include console region in save state Fixes #149. --- src/core/save_state_version.h | 2 +- src/core/system.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/save_state_version.h b/src/core/save_state_version.h index 0c30b6be4..d8a8f13ba 100644 --- a/src/core/save_state_version.h +++ b/src/core/save_state_version.h @@ -2,4 +2,4 @@ #include "types.h" static constexpr u32 SAVE_STATE_MAGIC = 0x43435544; -static constexpr u32 SAVE_STATE_VERSION = 13; +static constexpr u32 SAVE_STATE_VERSION = 14; diff --git a/src/core/system.cpp b/src/core/system.cpp index e9d40ea2c..90f0a091a 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -319,6 +319,7 @@ bool System::DoState(StateWrapper& sw) if (!sw.DoMarker("System")) return false; + sw.Do(&m_region); sw.Do(&m_frame_number); sw.Do(&m_internal_frame_number); sw.Do(&m_global_tick_counter);