From 219eab74f2853a958eda2f5eb5b6c43f73513405 Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Sun, 12 Apr 2026 19:11:16 +0200 Subject: [PATCH] DSPCore: Remove m_init_hax member --- Source/Core/Core/DSP/DSPCore.cpp | 3 --- Source/Core/Core/DSP/DSPCore.h | 1 - Source/Core/Core/State.cpp | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/DSP/DSPCore.cpp b/Source/Core/Core/DSP/DSPCore.cpp index 861c0cac23..55293ff03e 100644 --- a/Source/Core/Core/DSP/DSPCore.cpp +++ b/Source/Core/Core/DSP/DSPCore.cpp @@ -429,8 +429,6 @@ bool DSPCore::Initialize(const DSPInitOptions& opts) if (!m_dsp.Initialize(opts)) return false; - m_init_hax = false; - // Initialize JIT, if necessary if (opts.core_type == DSPInitOptions::CoreType::JIT64) m_dsp_jit = JIT::CreateDSPEmitter(*this); @@ -602,7 +600,6 @@ bool DSPCore::IsJITCreated() const void DSPCore::DoState(PointerWrap& p) { m_dsp.DoState(p); - p.Do(m_init_hax); if (m_dsp_jit) m_dsp_jit->DoState(p); diff --git a/Source/Core/Core/DSP/DSPCore.h b/Source/Core/Core/DSP/DSPCore.h index 29bded217a..8b9676c5f7 100644 --- a/Source/Core/Core/DSP/DSPCore.h +++ b/Source/Core/Core/DSP/DSPCore.h @@ -582,7 +582,6 @@ private: SDSP m_dsp; DSPBreakpoints m_dsp_breakpoints; State m_core_state = State::Stopped; - bool m_init_hax = false; std::unique_ptr m_dsp_interpreter; std::unique_ptr m_dsp_jit; std::unique_ptr m_dsp_cap; diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 37172a8f9a..9223be5cca 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -79,7 +79,7 @@ static u32 s_last_state_size = 0; // Shared locks are acquired for each state save task. // Tasks generally transition from: Calling thread -> CPU thread -> Compress/Write thread. // Holding an "exclusive" lock will: -// 1. Ensure all previous save tasks have been completely written to the file systen. +// 1. Ensure all previous save tasks have been completely written to the file system. // 2. Prevent new tasks from starting. static Common::TransferableSharedMutex s_state_saves_in_progress; @@ -95,7 +95,7 @@ struct CompressAndDumpStateArgs static Common::WorkQueueThreadSP s_compress_and_dump_thread; // Don't forget to increase this after doing changes on the savestate system -constexpr u32 STATE_VERSION = 187; // Last changed in PR 14552 +constexpr u32 STATE_VERSION = 188; // Last changed in PR 14579 // Increase this if the StateExtendedHeader definition changes constexpr u32 EXTENDED_HEADER_VERSION = 1; // Last changed in PR 12217