Have playback of input files stop upon reaching the frame count designated in the header, preventing that number from being tampered with and assisting in recording verifiability. Adjusted the "resume recording from end of playback" code to account for playback stopping in the middle of a movie as above.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7176 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
smelenchuk
2011-02-15 17:03:20 +00:00
parent fb4c82fb48
commit d7bda211fd
4 changed files with 27 additions and 20 deletions

View File

@ -391,7 +391,7 @@ void LoadStateCallback(u64 userdata, int cyclesLate)
if (File::Exists(StringFromFormat("%s.dtm", cur_filename.c_str()).c_str()))
Frame::LoadInput(StringFromFormat("%s.dtm", cur_filename.c_str()).c_str());
else if (!Frame::IsRecordingInputFromSaveState())
Frame::EndPlayInput();
Frame::EndPlayInput(false);
state_op_in_progress = false;