mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Commit next part of FS# 10138 by Teruaki Kawashima. Check for PLAY_MODE before enabling pause after hold. Fixes a bug where toggling hold would confuse the game state.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21104 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e299fb3716
commit
57c371ee0e
1 changed files with 2 additions and 2 deletions
|
@ -2017,7 +2017,7 @@ enum plugin_status start_game(void)
|
||||||
button = rb->button_get(false);
|
button = rb->button_get(false);
|
||||||
|
|
||||||
#ifdef HAS_BUTTON_HOLD
|
#ifdef HAS_BUTTON_HOLD
|
||||||
if (rb->button_hold())
|
if (rb->button_hold() && game_state == PLAY_MODE)
|
||||||
game_state = PAUSE_MODE;
|
game_state = PAUSE_MODE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue