bugs to tas logic fixed..
This commit is contained in:
parent
7f5f91558d
commit
3250180b9f
|
@ -501,6 +501,8 @@ void FCEUI_SaveMovie(char *fname, uint8 flags, const char* metadata)
|
||||||
|
|
||||||
openRecordingMovie(fname);
|
openRecordingMovie(fname);
|
||||||
|
|
||||||
|
currFrameCounter = 0;
|
||||||
|
|
||||||
currMovieData = MovieData();
|
currMovieData = MovieData();
|
||||||
currMovieData.guid.newGuid();
|
currMovieData.guid.newGuid();
|
||||||
|
|
||||||
|
@ -585,7 +587,6 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush)
|
||||||
MovieRecord& mr = currMovieData.records[currFrameCounter];
|
MovieRecord& mr = currMovieData.records[currFrameCounter];
|
||||||
for(int i=0;i<4;i++)
|
for(int i=0;i<4;i++)
|
||||||
js[i] = mr.joysticks[i];
|
js[i] = mr.joysticks[i];
|
||||||
currFrameCounter++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//pause the movie at a specified frame
|
//pause the movie at a specified frame
|
||||||
|
@ -606,9 +607,10 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush)
|
||||||
|
|
||||||
mr.dump(fpRecordingMovie,currMovieData.records.size());
|
mr.dump(fpRecordingMovie,currMovieData.records.size());
|
||||||
currMovieData.records.push_back(mr);
|
currMovieData.records.push_back(mr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currFrameCounter++;
|
||||||
|
|
||||||
memcpy(&cur_input_display,js,4);
|
memcpy(&cur_input_display,js,4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue