From caf0e5b3e857b4d3ceb1e93e3b75efbbe38cce61 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 25 Jun 2022 19:15:21 +0200 Subject: [PATCH] DSPHLE: Add variables in CMailHandler to savestate. --- Source/Core/Core/HW/DSPHLE/MailHandler.cpp | 2 ++ Source/Core/Core/State.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DSPHLE/MailHandler.cpp b/Source/Core/Core/HW/DSPHLE/MailHandler.cpp index f297b6f53c..d9b6b5d406 100644 --- a/Source/Core/Core/HW/DSPHLE/MailHandler.cpp +++ b/Source/Core/Core/HW/DSPHLE/MailHandler.cpp @@ -87,5 +87,7 @@ void CMailHandler::SetHalted(bool halt) void CMailHandler::DoState(PointerWrap& p) { p.Do(m_pending_mails); + p.Do(m_last_mail); + p.Do(m_halted); } } // namespace DSP::HLE diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 76349ba4d2..e10fc44fed 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -74,7 +74,7 @@ static std::recursive_mutex g_save_thread_mutex; static std::thread g_save_thread; // Don't forget to increase this after doing changes on the savestate system -constexpr u32 STATE_VERSION = 142; // Last changed in PR 10732 +constexpr u32 STATE_VERSION = 143; // Last changed in PR 10784 // Maps savestate versions to Dolphin versions. // Versions after 42 don't need to be added to this list,