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;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue