From 7b6f34a4561c544739c4271ecc27c1d5a7b0af7d Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Wed, 17 May 2017 17:42:30 -0400 Subject: puzzles: fix building - disables help on c200v2 - renames conflicting function Change-Id: I0c4ff1bb40e7e3cafd0170090f22b80bf0656741 --- apps/plugins/puzzles/rockbox.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'apps/plugins/puzzles/rockbox.c') diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index 7a784ba97c..7a29f341f0 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c @@ -1099,6 +1099,15 @@ static void quick_help(void) } } +#ifdef SANSA_C200V2 +/* no full help available due to memory constraints, so we provide a + * dummy function here */ +void full_help(const char *str) +{ + (void) str; +} +#endif + static void init_default_settings(void) { settings.slowmo_factor = 1; @@ -1214,7 +1223,11 @@ static int pausemenu_cb(int action, const struct menu_item_ex *this_item) return ACTION_EXIT_MENUITEM; break; case 7: +#ifdef SANSA_C200V2 + return ACTION_EXIT_MENUITEM; +#else break; +#endif case 8: #ifdef COMBINED /* audio buf is used, so no playback */ @@ -1806,7 +1819,11 @@ static int mainmenu_cb(int action, const struct menu_item_ex *this_item) return ACTION_EXIT_MENUITEM; break; case 3: +#ifdef SANSA_C200V2 + return ACTION_EXIT_MENUITEM; +#else break; +#endif case 4: #ifdef COMBINED /* audio buf is used, so no playback */ -- cgit v1.2.3