From ab48e1154bd077e11e0f5b16a5362952c72e2dcb Mon Sep 17 00:00:00 2001 From: Rog Date: Thu, 8 Nov 2012 22:45:13 -0500 Subject: [PATCH] Stop saving undo buffer (and associated .dtm, and .sav) when starting playing back a movie from save state. This is completely useless, and just wastes time copying save states around. --- Source/Core/Core/Src/State.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/Src/State.cpp b/Source/Core/Core/Src/State.cpp index 3f3e367349..ab2313be4e 100644 --- a/Source/Core/Core/Src/State.cpp +++ b/Source/Core/Core/Src/State.cpp @@ -385,6 +385,7 @@ void LoadAs(const std::string& filename) g_loadDepth++; // Save temp buffer for undo load state + if (!Movie::IsJustStartingRecordingInputFromSaveState()) { std::lock_guard lk(g_cs_undo_load_buffer); SaveToBuffer(g_undo_load_buffer);