From aa980a44cda4314a182af8628a97b295480728a2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 19 Oct 2025 01:33:37 +1000 Subject: [PATCH] GPU: Don't save settings to save state --- src/core/gpu.cpp | 8 ++++++-- src/core/save_state_version.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index f0586417b..a1afb104a 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -347,8 +347,12 @@ bool GPU::DoState(StateWrapper& sw) sw.Do(&m_blit_remaining_words); sw.Do(&m_render_command.bits); - sw.Do(&m_max_run_ahead); - sw.Do(&m_fifo_size); + if (sw.GetVersion() < 83) [[unlikely]] + { + // Removed in v83 + DebugAssert(sw.IsReading()); + sw.SkipBytes(sizeof(u32) * 2); + } if (!sw.DoMarker("GPU-VRAM")) return false; diff --git a/src/core/save_state_version.h b/src/core/save_state_version.h index b53d5f16f..dcec17f3b 100644 --- a/src/core/save_state_version.h +++ b/src/core/save_state_version.h @@ -6,7 +6,7 @@ #include "common/types.h" inline constexpr u32 SAVE_STATE_MAGIC = 0x43435544; -inline constexpr u32 SAVE_STATE_VERSION = 82; +inline constexpr u32 SAVE_STATE_VERSION = 83; inline constexpr u32 SAVE_STATE_MINIMUM_VERSION = 42; static_assert(SAVE_STATE_VERSION >= SAVE_STATE_MINIMUM_VERSION);