From b756ffb1e6ddb1cd91f275e59b901faf018e3b60 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Fri, 14 Feb 2025 08:56:19 +0100 Subject: [PATCH] fix movie command flags not actually being OR'd together --- desmume/src/movie.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/movie.cpp b/desmume/src/movie.cpp index 2f9f34fef..132343875 100644 --- a/desmume/src/movie.cpp +++ b/desmume/src/movie.cpp @@ -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; }