bugs to tas logic fixed..

This commit is contained in:
zeromus 2008-05-26 02:20:56 +00:00
parent 7f5f91558d
commit 3250180b9f
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}