fixed recent breakages in movie recording

This commit is contained in:
zeromus 2008-06-13 01:42:30 +00:00
parent 41d375a435
commit 66b43671bb
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,7 @@ void MovieRecord::dump(MovieData* md, std::ostream* os, int index)
//fprintf(fp,"%08d",index);
//dump the misc commands
*os << setw(1) << commands << '|';
*os << '|' << setw(1) << (int)commands;
//a special case: if fourscore is enabled, dump four gamepads
if(md->fourscore)
@ -721,6 +721,7 @@ void FCEUMOV_AddInputState()
joyports[0].log(&mr);
joyports[1].log(&mr);
mr.commands = 0;
mr.dump(&currMovieData, osRecordingMovie,currMovieData.records.size());
currMovieData.records.push_back(mr);