Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small fix for undo load state while not recording
  • Loading branch information
rog9 committed Oct 18, 2012
1 parent 79692a6 commit b1dee5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/Core/Src/State.cpp
Expand Up @@ -389,7 +389,10 @@ void LoadAs(const std::string& filename)
{
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
SaveToBuffer(g_undo_load_buffer);
Movie::SaveRecording("undo.dtm");
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
Movie::SaveRecording("undo.dtm");
else if (File::Exists("undo.dtm"))
File::Delete("undo.dtm");
}

bool loaded = false;
Expand Down

0 comments on commit b1dee5f

Please sign in to comment.