mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
refactoring for Wiz port; random cleanups
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@703 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
9c0d458840
commit
d572cbad98
18 changed files with 531 additions and 492 deletions
|
@ -538,6 +538,7 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
|
|||
return 0;
|
||||
return 1;
|
||||
|
||||
#if 0 // TODO rm?
|
||||
case MA_OPT_CPU_CLOCKS:
|
||||
#ifdef __GP2X__
|
||||
if (strcasecmp(var, "GP2X CPU clocks") != 0) return 0;
|
||||
|
@ -546,6 +547,7 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
|
|||
#endif
|
||||
currentConfig.CPUclock = atoi(val);
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
case MA_OPT2_GAMMA:
|
||||
if (strcasecmp(var, "Gamma correction") != 0) return 0;
|
||||
|
|
|
@ -1702,11 +1702,7 @@ static menu_entry e_menu_options[] =
|
|||
mee_onoff ("Enable sound", MA_OPT_ENABLE_SOUND, currentConfig.EmuOpt, 0x004),
|
||||
mee_cust ("Sound Quality", MA_OPT_SOUND_QUALITY, mh_opt_misc, mgn_opt_sound),
|
||||
mee_cust ("Confirm savestate", MA_OPT_CONFIRM_STATES,mh_opt_misc, mgn_opt_c_saves),
|
||||
#if defined(__GP2X__)
|
||||
mee_range ("GP2X CPU clocks", MA_OPT_CPU_CLOCKS, currentConfig.CPUclock, 20, 400),
|
||||
#elif defined(PSP)
|
||||
mee_range ("PSP CPU clock", MA_OPT_CPU_CLOCKS, currentConfig.CPUclock, )
|
||||
#endif
|
||||
mee_range (cpu_clk_name, MA_OPT_CPU_CLOCKS, currentConfig.CPUclock, 20, 900),
|
||||
mee_handler ("[Display options]", menu_loop_gfx_options),
|
||||
mee_handler ("[Advanced options]", menu_loop_adv_options),
|
||||
mee_handler ("[Sega/Mega CD options]", menu_loop_cd_options),
|
||||
|
|
|
@ -96,7 +96,7 @@ typedef enum
|
|||
|
||||
typedef struct
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
menu_behavior beh;
|
||||
menu_id id;
|
||||
void *var; /* for on-off/range settings */
|
||||
|
|
|
@ -3,6 +3,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
/* stuff to be implemented by platform code */
|
||||
extern char cpu_clk_name[];
|
||||
/* TODO rename all these */
|
||||
extern const char * const keyNames[]; // TODO rm
|
||||
void emu_prepareDefaultConfig(void);
|
||||
|
@ -18,6 +19,9 @@ int emu_getMainDir(char *dst, int len);
|
|||
void menu_romload_prepare(const char *rom_name);
|
||||
void menu_romload_end(void);
|
||||
|
||||
void plat_init(void);
|
||||
void plat_finish(void);
|
||||
|
||||
/* menu: enter (switch bpp, etc), begin/end drawing */
|
||||
void plat_video_menu_enter(int is_rom_loaded);
|
||||
void plat_video_menu_begin(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue