mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Rewrite to parts of the DTM code to remove the need for temporary files. Should fix files occasionally getting corrupted. DTM export dialog now asks before overwriting a file.
Saving a state that is not recording over one that was will now delete the old recording. Fixes trying to record with the wrong savestate. Fixed some compiler warnings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7505 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -236,7 +236,9 @@ void SaveFileStateCallback(u64 userdata, int cyclesLate)
|
||||
DoState(p);
|
||||
|
||||
if ((Frame::IsRecordingInput() || Frame::IsPlayingInput()) && !Frame::IsRecordingInputFromSaveState())
|
||||
Frame::SaveRecording(StringFromFormat("%s.dtm", g_current_filename.c_str()).c_str());
|
||||
Frame::SaveRecording((g_current_filename + ".dtm").c_str());
|
||||
else if (!Frame::IsRecordingInput() && !Frame::IsPlayingInput())
|
||||
File::Delete(g_current_filename + ".dtm");
|
||||
|
||||
Core::DisplayMessage("Saving State...", 1000);
|
||||
|
||||
|
Reference in New Issue
Block a user