diff options
author | Franklin Wei <git@fwei.tk> | 2017-05-09 22:10:59 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-05-16 16:45:39 -0400 |
commit | 001860ce7856e20b890d8adf425c899540a5d5d3 (patch) | |
tree | 61df98408207d85a05e29cfca1edb91ec6cb4d4a /apps/plugins/puzzles/rockbox.c | |
parent | 7482b821753ac226806439fecec4f9ff504c0e90 (diff) | |
download | rockbox-001860ce7856e20b890d8adf425c899540a5d5d3.tar.gz rockbox-001860ce7856e20b890d8adf425c899540a5d5d3.zip |
puzzles: full help system
- embeds the upstream halibut documentation for plugin use
- currently every plugin has a copy of the help text, but in the
future a centralized system using overlays might be better
Change-Id: Idb6eb9accc2fa786a4c6bc2b704e7cf5fd3f78dd
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index 43afb62e40..7a784ba97c 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c | |||
@@ -1099,11 +1099,6 @@ static void quick_help(void) | |||
1099 | } | 1099 | } |
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | static void full_help(void) | ||
1103 | { | ||
1104 | /* TODO */ | ||
1105 | } | ||
1106 | |||
1107 | static void init_default_settings(void) | 1102 | static void init_default_settings(void) |
1108 | { | 1103 | { |
1109 | settings.slowmo_factor = 1; | 1104 | settings.slowmo_factor = 1; |
@@ -1219,11 +1214,7 @@ static int pausemenu_cb(int action, const struct menu_item_ex *this_item) | |||
1219 | return ACTION_EXIT_MENUITEM; | 1214 | return ACTION_EXIT_MENUITEM; |
1220 | break; | 1215 | break; |
1221 | case 7: | 1216 | case 7: |
1222 | #ifdef FOR_REAL | ||
1223 | return ACTION_EXIT_MENUITEM; | ||
1224 | #else | ||
1225 | break; | 1217 | break; |
1226 | #endif | ||
1227 | case 8: | 1218 | case 8: |
1228 | #ifdef COMBINED | 1219 | #ifdef COMBINED |
1229 | /* audio buf is used, so no playback */ | 1220 | /* audio buf is used, so no playback */ |
@@ -1354,7 +1345,7 @@ static int pause_menu(void) | |||
1354 | quick_help(); | 1345 | quick_help(); |
1355 | break; | 1346 | break; |
1356 | case 7: | 1347 | case 7: |
1357 | full_help(); | 1348 | full_help(midend_which_game(me)->name); |
1358 | break; | 1349 | break; |
1359 | case 8: | 1350 | case 8: |
1360 | playback_control(NULL); | 1351 | playback_control(NULL); |
@@ -1815,11 +1806,7 @@ static int mainmenu_cb(int action, const struct menu_item_ex *this_item) | |||
1815 | return ACTION_EXIT_MENUITEM; | 1806 | return ACTION_EXIT_MENUITEM; |
1816 | break; | 1807 | break; |
1817 | case 3: | 1808 | case 3: |
1818 | #ifdef FOR_REAL | ||
1819 | return ACTION_EXIT_MENUITEM; | ||
1820 | #else | ||
1821 | break; | 1809 | break; |
1822 | #endif | ||
1823 | case 4: | 1810 | case 4: |
1824 | #ifdef COMBINED | 1811 | #ifdef COMBINED |
1825 | /* audio buf is used, so no playback */ | 1812 | /* audio buf is used, so no playback */ |
@@ -1934,7 +1921,7 @@ enum plugin_status plugin_start(const void *param) | |||
1934 | quick_help(); | 1921 | quick_help(); |
1935 | break; | 1922 | break; |
1936 | case 3: | 1923 | case 3: |
1937 | full_help(); | 1924 | full_help(midend_which_game(me)->name); |
1938 | break; | 1925 | break; |
1939 | case 4: | 1926 | case 4: |
1940 | playback_control(NULL); | 1927 | playback_control(NULL); |