summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-04-01 23:23:07 +0000
committerDave Chapman <dave@dchapman.com>2006-04-01 23:23:07 +0000
commitbf9995214032a37dba88b50c72387f8ececf29c9 (patch)
treef30d360bb822110bf2d10437c76739df444c6c9f /apps/plugins
parentbf1f59f56d63394116c74dfccfa3e5a37773eac9 (diff)
Add audio playback menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9413 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/sudoku/sudoku.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c
index 798936b384..9ca5376a58 100644
--- a/apps/plugins/sudoku/sudoku.c
+++ b/apps/plugins/sudoku/sudoku.c
@@ -60,6 +60,7 @@ Example ".ss" file, and one with a saved state:
#ifdef HAVE_LCD_BITMAP
+#include <lib/playback_control.h>
#include "sudoku.h"
#include "generator.h"
@@ -870,6 +871,7 @@ bool sudoku_menu(struct sudoku_state_t* state)
int result;
static const struct menu_item items[] = {
+ { "Audio Playback", NULL },
{ "Save", NULL },
{ "Reload", NULL },
{ "Clear", NULL },
@@ -886,31 +888,35 @@ bool sudoku_menu(struct sudoku_state_t* state)
switch (result) {
case 0: /* Save state */
+ playback_control(rb);
+ break;
+
+ case 1: /* Save state */
save_sudoku(state);
break;
- case 1: /* Restore state */
+ case 2: /* Restore state */
restore_state(state);
break;
- case 2: /* Clear all */
+ case 3: /* Clear all */
clear_board(state);
break;
- case 3: /* Solve */
+ case 4: /* Solve */
sudoku_solve(state);
break;
- case 4: /* Generate Game */
+ case 5: /* Generate Game */
sudoku_generate(state);
break;
- case 5: /* Create a new game manually */
+ case 6: /* Create a new game manually */
clear_state(state);
state->editmode=1;
break;
- case 6: /* Quit */
+ case 7: /* Quit */
save_sudoku(state);
rb->menu_exit(m);
return true;