System: Include console region in save state

Fixes #149.
This commit is contained in:
Connor McLaughlin 2020-03-25 01:49:20 +10:00
parent 7cd7dec668
commit 88f1edd48d
2 changed files with 2 additions and 1 deletions

View file

@ -2,4 +2,4 @@
#include "types.h" #include "types.h"
static constexpr u32 SAVE_STATE_MAGIC = 0x43435544; static constexpr u32 SAVE_STATE_MAGIC = 0x43435544;
static constexpr u32 SAVE_STATE_VERSION = 13; static constexpr u32 SAVE_STATE_VERSION = 14;

View file

@ -319,6 +319,7 @@ bool System::DoState(StateWrapper& sw)
if (!sw.DoMarker("System")) if (!sw.DoMarker("System"))
return false; return false;
sw.Do(&m_region);
sw.Do(&m_frame_number); sw.Do(&m_frame_number);
sw.Do(&m_internal_frame_number); sw.Do(&m_internal_frame_number);
sw.Do(&m_global_tick_counter); sw.Do(&m_global_tick_counter);