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:
parent
d2fee771fd
commit
60d7ead565
|
@ -401,8 +401,7 @@ uint32_t systemReadJoypad(int joy)
|
|||
uint32_t gf, jp;
|
||||
|
||||
if (game_file.Read(&gf, sizeof(gf)) != sizeof(gf) || game_file.Read(&jp, sizeof(jp)) != sizeof(jp)) {
|
||||
game_file.Close();
|
||||
game_playback = false;
|
||||
systemStopGamePlayback();
|
||||
wxString msg(_("Playback ended"));
|
||||
systemScreenMessage(msg);
|
||||
break;
|
||||
|
@ -421,8 +420,7 @@ uint32_t systemReadJoypad(int joy)
|
|||
uint32_t gf, jp;
|
||||
|
||||
if (game_file.Read(&gf, sizeof(gf)) != sizeof(gf) || game_file.Read(&jp, sizeof(jp)) != sizeof(jp)) {
|
||||
game_file.Close();
|
||||
game_playback = false;
|
||||
systemStopGamePlayback();
|
||||
wxString msg(_("Playback ended"));
|
||||
systemScreenMessage(msg);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue