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.

This commit is contained in:
Rog 2012-11-08 22:45:13 -05:00
parent 95d55ed1c7
commit ab48e1154b
1 changed files with 1 additions and 0 deletions

View File

@ -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<std::mutex> lk(g_cs_undo_load_buffer);
SaveToBuffer(g_undo_load_buffer);