From de5477cc002ea2a3173f80fc63b8beecc32f602e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Mon, 29 Sep 2003 21:26:53 +0000 Subject: Brian King's .rockbox browsing patch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3964 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'apps/main_menu.c') diff --git a/apps/main_menu.c b/apps/main_menu.c index e356603..eb68eb6 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -251,6 +251,16 @@ bool show_info(void) return false; } +static bool firmware_browse(void) +{ + return rockbox_browse(ROCKBOX_DIR, SHOW_MOD); +} + +static bool plugin_browse(void) +{ + return rockbox_browse(PLUGIN_DIR, SHOW_PLUGINS); +} + bool main_menu(void) { int m; @@ -273,14 +283,8 @@ bool main_menu(void) #ifdef HAVE_ALARM_MOD { str(LANG_ALARM_MOD_ALARM_MENU), alarm_screen }, #endif -#ifdef HAVE_LCD_BITMAP -#ifdef USE_GAMES - { str(LANG_GAMES), games_menu }, -#endif -#ifdef USE_DEMOS - { str(LANG_DEMOS), demo_menu }, -#endif /* end USE_DEMOS */ -#endif + { str(LANG_PLUGINS), plugin_browse }, + { str(LANG_FIRMWARE), firmware_browse }, { str(LANG_INFO), show_info }, { str(LANG_VERSION), show_credits }, #ifndef SIMULATOR -- cgit v1.1