mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
small fix for undo load state while not recording
This commit is contained in:
parent
79692a6c78
commit
b1dee5fc23
1 changed files with 4 additions and 1 deletions
|
@ -389,7 +389,10 @@ void LoadAs(const std::string& filename)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
|
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
|
||||||
SaveToBuffer(g_undo_load_buffer);
|
SaveToBuffer(g_undo_load_buffer);
|
||||||
|
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
|
||||||
Movie::SaveRecording("undo.dtm");
|
Movie::SaveRecording("undo.dtm");
|
||||||
|
else if (File::Exists("undo.dtm"))
|
||||||
|
File::Delete("undo.dtm");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool loaded = false;
|
bool loaded = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue