Merge pull request #888 from Morilli/fix-movie-commands

fix movie command flags not actually being OR'd together
This commit is contained in:
zeromus 2025-02-14 03:16:42 -05:00 committed by GitHub
commit 5cd9d36bba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

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