Skip to content

Commit aa980a4

Browse files
committed
GPU: Don't save settings to save state
1 parent a52020b commit aa980a4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/core/gpu.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,12 @@ bool GPU::DoState(StateWrapper& sw)
347347
sw.Do(&m_blit_remaining_words);
348348
sw.Do(&m_render_command.bits);
349349

350-
sw.Do(&m_max_run_ahead);
351-
sw.Do(&m_fifo_size);
350+
if (sw.GetVersion() < 83) [[unlikely]]
351+
{
352+
// Removed in v83
353+
DebugAssert(sw.IsReading());
354+
sw.SkipBytes(sizeof(u32) * 2);
355+
}
352356

353357
if (!sw.DoMarker("GPU-VRAM"))
354358
return false;

src/core/save_state_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "common/types.h"
77

88
inline constexpr u32 SAVE_STATE_MAGIC = 0x43435544;
9-
inline constexpr u32 SAVE_STATE_VERSION = 82;
9+
inline constexpr u32 SAVE_STATE_VERSION = 83;
1010
inline constexpr u32 SAVE_STATE_MINIMUM_VERSION = 42;
1111

1212
static_assert(SAVE_STATE_VERSION >= SAVE_STATE_MINIMUM_VERSION);

0 commit comments

Comments
 (0)