forked from len0rd/rockbox
Add audio playback menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9546 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a7b593055f
commit
b040cdc4af
1 changed files with 11 additions and 3 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
|
#include "playback_control.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
|
||||||
|
|
@ -180,7 +181,8 @@ enum menu_result {
|
||||||
MRES_RESUME,
|
MRES_RESUME,
|
||||||
MRES_SCORES,
|
MRES_SCORES,
|
||||||
MRES_HELP,
|
MRES_HELP,
|
||||||
MRES_QUIT
|
MRES_QUIT,
|
||||||
|
MRES_PLAYBACK
|
||||||
};
|
};
|
||||||
|
|
||||||
/* menu commands */
|
/* menu commands */
|
||||||
|
|
@ -208,8 +210,9 @@ struct jewels_menu {
|
||||||
{"High Scores", MRES_SCORES},
|
{"High Scores", MRES_SCORES},
|
||||||
{"Help", MRES_HELP},
|
{"Help", MRES_HELP},
|
||||||
{"Quit", MRES_QUIT}}},
|
{"Quit", MRES_QUIT}}},
|
||||||
{"Menu", true, 0, 3,
|
{"Menu", true, 0, 4,
|
||||||
{{"Resume Game", MRES_RESUME},
|
{{"Audio Playback", MRES_PLAYBACK },
|
||||||
|
{"Resume Game", MRES_RESUME},
|
||||||
{"Save Game", MRES_SAVE},
|
{"Save Game", MRES_SAVE},
|
||||||
{"End Game", MRES_QUIT}}}
|
{"End Game", MRES_QUIT}}}
|
||||||
};
|
};
|
||||||
|
|
@ -1279,6 +1282,11 @@ static int jewels_main(struct game_context* bj) {
|
||||||
selected = false;
|
selected = false;
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
case MRES_PLAYBACK:
|
||||||
|
playback_control(rb);
|
||||||
|
inmenu = false;
|
||||||
|
break;
|
||||||
|
|
||||||
case MRES_SAVE:
|
case MRES_SAVE:
|
||||||
rb->splash(HZ, true, "Saving game...");
|
rb->splash(HZ, true, "Saving game...");
|
||||||
jewels_savegame(bj);
|
jewels_savegame(bj);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue