1 // (c) Copyright 2006-2008 notaz, All rights reserved.
5 void text_out16(int x, int y, const char *texto, ...);
6 void smalltext_out16(int x, int y, const char *texto, int color);
7 void smalltext_out16_lim(int x, int y, const char *texto, int color, int max);
8 void menu_draw_selection(int x, int y, int w);
10 extern char menuErrorMsg[64];
14 MB_NONE = 1, /* no auto processing */
15 MB_ONOFF, /* ON/OFF setting */
16 MB_RANGE, /* [min-max] setting */
44 MA_OPT_CONFIRM_STATES,
49 MA_OPT_DISP_OPTS, /* psp */
53 MA_OPT_INTERLACED, /* giz */
56 MA_OPT2_DBLBUFF, /* giz */
59 MA_OPT2_ENABLE_YM2612,
60 MA_OPT2_ENABLE_SN76496,
63 MA_OPT2_RAMTIMINGS, /* gp2x */
64 MA_OPT2_SQUIDGEHACK, /* gp2x */
65 MA_OPT2_STATUS_LINE, /* psp */
66 MA_OPT2_NO_FRAME_LIMIT, /* psp */
68 MA_OPT2_NO_SPRITE_LIM,
70 MA_OPT3_SCALE, /* psp (all OPT3) */
81 MA_CDOPT_TESTBIOS_USA,
82 MA_CDOPT_TESTBIOS_EUR,
83 MA_CDOPT_TESTBIOS_JAP,
89 MA_CDOPT_SCALEROT_CHIP,
99 void *var; /* for on-off settings */
101 signed char min; /* for ranged integer settings, to be sign-extended */
113 extern me_bind_action me_ctrl_actions[12];
114 extern me_bind_action emuctrl_actions[]; // platform code
117 typedef void (me_draw_custom_f)(const menu_entry *entry, int x, int y, void *param);
119 int me_id2offset(const menu_entry *entries, int count, menu_id id);
120 void me_enable(menu_entry *entries, int count, menu_id id, int enable);
121 int me_count_enabled(const menu_entry *entries, int count);
122 menu_id me_index2id(const menu_entry *entries, int count, int index);
123 void me_draw(const menu_entry *entries, int count, int x, int y, me_draw_custom_f *cust_draw, void *param);
124 int me_process(menu_entry *entries, int count, menu_id id, int is_next);
126 const char *me_region_name(unsigned int code, int auto_order);