Skip to content

Commit

Permalink
Merge pull request #888 from Morilli/fix-movie-commands
Browse files Browse the repository at this point in the history
fix movie command flags not actually being OR'd together
  • Loading branch information
zeromus authored Feb 14, 2025
2 parents bec2329 + b756ffb commit 5cd9d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions desmume/src/movie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1429,11 +1429,11 @@ void DesmumeInputToReplayRec(const UserInput &inInput, MovieRecord &outRecord)
((inInput.buttons.E) ? (1 << 1) : 0);

if (inInput.buttons.F)
outRecord.commands = MOVIECMD_LID;
outRecord.commands |= MOVIECMD_LID;

if (movie_reset_command)
{
outRecord.commands = MOVIECMD_RESET;
outRecord.commands |= MOVIECMD_RESET;
movie_reset_command = false;
}

Expand All @@ -1443,5 +1443,5 @@ void DesmumeInputToReplayRec(const UserInput &inInput, MovieRecord &outRecord)
outRecord.touch.micsample = MicSampleSelection;

if (inInput.mic.micButtonPressed != 0)
outRecord.commands = MOVIECMD_MIC;
outRecord.commands |= MOVIECMD_MIC;
}

0 comments on commit 5cd9d36

Please sign in to comment.