+ mee_onoff ("Status line in main menu", MA_OPT2_STATUS_LINE, currentConfig.EmuOpt, EOPT_SHOW_RTC),
+
+
+static menu_entry e_menu_adv_options[];
+static menu_entry e_menu_gfx_options[];
+static menu_entry e_menu_options[];
+static menu_entry e_menu_keyconfig[];
+
+void gp2x_menu_init(void)
+{
+ static menu_entry *cpu_clk_ent;
+ int i;
+
+ i = me_id2offset(e_menu_options, MA_OPT_CPU_CLOCKS);
+ cpu_clk_ent = &e_menu_options[i];
+
+ /* disable by default.. */
+ me_enable(e_menu_adv_options, MA_OPT_ARM940_SOUND, 0);
+ me_enable(e_menu_gfx_options, MA_OPT_TEARING_FIX, 0);
+ me_enable(e_menu_gfx_options, MA_OPT2_GAMMA, 0);
+ me_enable(e_menu_gfx_options, MA_OPT2_A_SN_GAMMA, 0);
+
+ switch (gp2x_dev_id) {
+ case GP2X_DEV_GP2X:
+ me_enable(e_menu_adv_options, MA_OPT_ARM940_SOUND, 1);
+ me_enable(e_menu_gfx_options, MA_OPT2_GAMMA, 1);
+ me_enable(e_menu_gfx_options, MA_OPT2_A_SN_GAMMA, 1);
+ cpu_clk_ent->name = "GP2X CPU clocks";
+ break;
+ case GP2X_DEV_WIZ:
+ me_enable(e_menu_gfx_options, MA_OPT_TEARING_FIX, 1);
+ cpu_clk_ent->name = "Wiz/Caanoo CPU clock";
+ break;
+ case GP2X_DEV_CAANOO:
+ cpu_clk_ent->name = "Wiz/Caanoo CPU clock";
+ break;
+ default:
+ break;
+ }