Merge pull request #8904 from AdmiralCurtiss/freelookcamera-savestate-fix
FreeLookCamera: Fix savestate branch inconsistency.
This commit is contained in:
commit
ef464effaf
|
@ -74,7 +74,7 @@ static Common::Event g_compressAndDumpStateSyncEvent;
|
||||||
static std::thread g_save_thread;
|
static std::thread g_save_thread;
|
||||||
|
|
||||||
// Don't forget to increase this after doing changes on the savestate system
|
// Don't forget to increase this after doing changes on the savestate system
|
||||||
constexpr u32 STATE_VERSION = 119; // Last changed in PR 8820
|
constexpr u32 STATE_VERSION = 120; // Last changed in PR 8904
|
||||||
|
|
||||||
// Maps savestate versions to Dolphin versions.
|
// Maps savestate versions to Dolphin versions.
|
||||||
// Versions after 42 don't need to be added to this list,
|
// Versions after 42 don't need to be added to this list,
|
||||||
|
|
|
@ -274,6 +274,8 @@ void FreeLookCamera::DoState(PointerWrap& p)
|
||||||
{
|
{
|
||||||
const auto old_type = m_current_type;
|
const auto old_type = m_current_type;
|
||||||
p.Do(m_current_type);
|
p.Do(m_current_type);
|
||||||
|
p.Do(m_fov_x);
|
||||||
|
p.Do(m_fov_y);
|
||||||
if (old_type == m_current_type)
|
if (old_type == m_current_type)
|
||||||
{
|
{
|
||||||
m_camera_controller->DoState(p);
|
m_camera_controller->DoState(p);
|
||||||
|
|
Loading…
Reference in New Issue