int g_menuscreen_w;\r
int g_menuscreen_h;\r
\r
+int g_autostateld_opt;\r
+\r
static unsigned char *menu_font_data = NULL;\r
static int menu_text_color = 0xfffe; // default to white\r
static int menu_sel_color = -1; // disabled\r
\r
snprintf(buff, sizeof(buff), "%s - select, %s - back",\r
in_get_key_name(-1, -PBTN_MOK), in_get_key_name(-1, -PBTN_MBACK));\r
- smalltext_out16(x, g_menuscreen_h - me_sfont_h * 2 - 2, buff, 0xe78c);\r
+ smalltext_out16(x, g_menuscreen_h - me_sfont_h * 3 - 2, buff, 0xe78c);\r
+\r
snprintf(buff, sizeof(buff), g_menu_filter_off ?\r
"%s - hide unknown files" : "%s - show all files",\r
in_get_key_name(-1, -PBTN_MA3));\r
+ smalltext_out16(x, g_menuscreen_h - me_sfont_h * 2 - 2, buff, 0xe78c);\r
+\r
+ snprintf(buff, sizeof(buff), g_autostateld_opt ?\r
+ "%s - autoload save is ON" : "%s - autoload save is OFF",\r
+ in_get_key_name(-1, -PBTN_MA2));\r
smalltext_out16(x, g_menuscreen_h - me_sfont_h * 1 - 2, buff, 0xe78c);\r
}\r
\r
inp = in_menu_wait(PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT\r
| PBTN_L|PBTN_R|PBTN_MA2|PBTN_MA3|PBTN_MOK|PBTN_MBACK\r
| PBTN_MENU|PBTN_CHAR, &cinp, 33);\r
- if (inp & PBTN_UP ) { sel--; if (sel < 0) sel = n-2; }\r
- if (inp & PBTN_DOWN) { sel++; if (sel > n-2) sel = 0; }\r
- if (inp & PBTN_LEFT) { sel-=10; if (sel < 0) sel = 0; }\r
- if (inp & PBTN_L) { sel-=24; if (sel < 0) sel = 0; }\r
- if (inp & PBTN_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }\r
- if (inp & PBTN_R) { sel+=24; if (sel > n-2) sel = n-2; }\r
- if (inp & PBTN_CHAR) sel = dirent_seek_char(namelist, n, sel, cinp);\r
if (inp & PBTN_MA3) {\r
g_menu_filter_off = !g_menu_filter_off;\r
snprintf(sel_fname, sizeof(sel_fname), "%s",\r
namelist[sel+1]->d_name);\r
goto rescan;\r
}\r
+ if (inp & PBTN_UP ) { sel--; if (sel < 0) sel = n-2; }\r
+ if (inp & PBTN_DOWN) { sel++; if (sel > n-2) sel = 0; }\r
+ if (inp & PBTN_LEFT) { sel-=10; if (sel < 0) sel = 0; }\r
+ if (inp & PBTN_L) { sel-=24; if (sel < 0) sel = 0; }\r
+ if (inp & PBTN_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }\r
+ if (inp & PBTN_R) { sel+=24; if (sel > n-2) sel = n-2; }\r
+\r
if ((inp & PBTN_MOK) || (inp & (PBTN_MENU|PBTN_MA2)) == (PBTN_MENU|PBTN_MA2))\r
{\r
again:\r
}\r
}\r
}\r
+ else if (inp & PBTN_MA2) {\r
+ g_autostateld_opt = !g_autostateld_opt;\r
+ show_help = 3;\r
+ }\r
+ else if (inp & PBTN_CHAR) {\r
+ // must be last\r
+ sel = dirent_seek_char(namelist, n, sel, cinp);\r
+ }\r
+\r
if (inp & PBTN_MBACK)\r
break;\r
\r