From 5a633f0bcf0c96b2bbf468779a2a12f41bafb2ff Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Thu, 11 Jan 2024 06:52:04 +0100 Subject: [PATCH] Core/IOS/WiiIPC: Add missing variables to savestate. --- Source/Core/Core/HW/WII_IPC.cpp | 2 ++ Source/Core/Core/State.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/WII_IPC.cpp b/Source/Core/Core/HW/WII_IPC.cpp index 06be7c000e..e8db89ff38 100644 --- a/Source/Core/Core/HW/WII_IPC.cpp +++ b/Source/Core/Core/HW/WII_IPC.cpp @@ -74,7 +74,9 @@ void WiiIPC::DoState(PointerWrap& p) p.Do(m_ppc_irq_masks); p.Do(m_arm_irq_flags); p.Do(m_arm_irq_masks); + p.Do(m_gpio_dir); p.Do(m_gpio_out); + p.Do(m_resets); } void WiiIPC::InitState() diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 95a431366f..4147136588 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -95,7 +95,7 @@ static size_t s_state_writes_in_queue; static std::condition_variable s_state_write_queue_is_empty; // Don't forget to increase this after doing changes on the savestate system -constexpr u32 STATE_VERSION = 166; // Last changed in PR 12487 +constexpr u32 STATE_VERSION = 167; // Last changed in PR 12494 // Increase this if the StateExtendedHeader definition changes constexpr u32 EXTENDED_HEADER_VERSION = 1; // Last changed in PR 12217