From 3250180b9f2e13a9fdc65c0a08736a6b04cab87d Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 26 May 2008 02:20:56 +0000 Subject: [PATCH] bugs to tas logic fixed.. --- src/movie.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/movie.cpp b/src/movie.cpp index e4ffff32..75558860 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -501,6 +501,8 @@ void FCEUI_SaveMovie(char *fname, uint8 flags, const char* metadata) openRecordingMovie(fname); + currFrameCounter = 0; + currMovieData = MovieData(); currMovieData.guid.newGuid(); @@ -585,7 +587,6 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush) MovieRecord& mr = currMovieData.records[currFrameCounter]; for(int i=0;i<4;i++) js[i] = mr.joysticks[i]; - currFrameCounter++; } //pause the movie at a specified frame @@ -606,9 +607,10 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush) mr.dump(fpRecordingMovie,currMovieData.records.size()); currMovieData.records.push_back(mr); - } + currFrameCounter++; + memcpy(&cur_input_display,js,4); }