diff options
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/main_menu.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 73c9f7be33..a483a72eb0 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -121,6 +121,15 @@ static int show_credits(void) | |||
121 | return 0; | 121 | return 0; |
122 | } | 122 | } |
123 | 123 | ||
124 | static int show_legal(void) | ||
125 | { | ||
126 | if (plugin_load(VIEWERS_DIR "/text_viewer.rock", "/.rockbox/docs/COPYING.txt") != PLUGIN_OK) | ||
127 | show_info(); | ||
128 | if (plugin_load(VIEWERS_DIR "/text_viewer.rock", "/.rockbox/docs/LICENSES.txt") != PLUGIN_OK) | ||
129 | show_info(); | ||
130 | return 0; | ||
131 | } | ||
132 | |||
124 | #define SIZE_FMT "%s %s" | 133 | #define SIZE_FMT "%s %s" |
125 | struct info_data | 134 | struct info_data |
126 | 135 | ||
@@ -469,9 +478,12 @@ MENUITEM_FUNCTION(show_runtime_item, 0, ID2P(LANG_RUNNING_TIME), | |||
469 | MENUITEM_FUNCTION(debug_menu_item, 0, ID2P(LANG_DEBUG), | 478 | MENUITEM_FUNCTION(debug_menu_item, 0, ID2P(LANG_DEBUG), |
470 | debug_menu, NULL, Icon_NOICON); | 479 | debug_menu, NULL, Icon_NOICON); |
471 | 480 | ||
481 | MENUITEM_FUNCTION(show_legal_item, 0, ID2P(LANG_LEGAL_NOTICES), | ||
482 | show_legal, NULL, Icon_NOICON); | ||
483 | |||
472 | MAKE_MENU(info_menu, ID2P(LANG_SYSTEM), 0, Icon_System_menu, | 484 | MAKE_MENU(info_menu, ID2P(LANG_SYSTEM), 0, Icon_System_menu, |
473 | &show_info_item, &show_credits_item, | 485 | &show_info_item, &show_credits_item, |
474 | &show_runtime_item, &debug_menu_item); | 486 | &show_runtime_item, &show_legal_item, &debug_menu_item); |
475 | /* INFO MENU */ | 487 | /* INFO MENU */ |
476 | /***********************************/ | 488 | /***********************************/ |
477 | 489 | ||