Fix menu state after playing a movie

Fix the state of the File -> Play -> Start/Stop menu after playing a
movie by calling systemStopGamePlayback() when the playback stops.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
laqieer 2022-08-07 19:00:28 +00:00 committed by Rafael Kitover
parent d2fee771fd
commit 60d7ead565
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 2 additions and 4 deletions

View File

@ -401,8 +401,7 @@ uint32_t systemReadJoypad(int joy)
uint32_t gf, jp; uint32_t gf, jp;
if (game_file.Read(&gf, sizeof(gf)) != sizeof(gf) || game_file.Read(&jp, sizeof(jp)) != sizeof(jp)) { if (game_file.Read(&gf, sizeof(gf)) != sizeof(gf) || game_file.Read(&jp, sizeof(jp)) != sizeof(jp)) {
game_file.Close(); systemStopGamePlayback();
game_playback = false;
wxString msg(_("Playback ended")); wxString msg(_("Playback ended"));
systemScreenMessage(msg); systemScreenMessage(msg);
break; break;
@ -421,8 +420,7 @@ uint32_t systemReadJoypad(int joy)
uint32_t gf, jp; uint32_t gf, jp;
if (game_file.Read(&gf, sizeof(gf)) != sizeof(gf) || game_file.Read(&jp, sizeof(jp)) != sizeof(jp)) { if (game_file.Read(&gf, sizeof(gf)) != sizeof(gf) || game_file.Read(&jp, sizeof(jp)) != sizeof(jp)) {
game_file.Close(); systemStopGamePlayback();
game_playback = false;
wxString msg(_("Playback ended")); wxString msg(_("Playback ended"));
systemScreenMessage(msg); systemScreenMessage(msg);
break; break;