mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
ui, revised menu and option handling, added sound filter settings
This commit is contained in:
parent
583c4840cf
commit
37631374df
10 changed files with 141 additions and 75 deletions
|
@ -279,6 +279,11 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
|
|||
return 0;
|
||||
return 1;
|
||||
|
||||
case MA_OPT_SOUND_ALPHA:
|
||||
if (strcasecmp(var, "Filter strength (alpha)") != 0) return 0;
|
||||
PicoIn.sndFilterAlpha = 0x10000 * atof(val);
|
||||
return 1;
|
||||
|
||||
case MA_OPT_REGION:
|
||||
if (strcasecmp(var, "Region") != 0) return 0;
|
||||
if (strncasecmp(val, "Auto: ", 6) == 0)
|
||||
|
@ -349,12 +354,12 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
|
|||
// XXX: use enum
|
||||
if (strcasecmp(var, "Wait for vsync") != 0) return 0;
|
||||
if (strcasecmp(val, "never") == 0) {
|
||||
currentConfig.EmuOpt &= ~0x12000;
|
||||
currentConfig.EmuOpt &= ~(EOPT_VSYNC|EOPT_VSYNC_MODE);
|
||||
} else if (strcasecmp(val, "sometimes") == 0) {
|
||||
currentConfig.EmuOpt |= 0x12000;
|
||||
currentConfig.EmuOpt |= (EOPT_VSYNC|EOPT_VSYNC_MODE);
|
||||
} else if (strcasecmp(val, "always") == 0) {
|
||||
currentConfig.EmuOpt &= ~0x12000;
|
||||
currentConfig.EmuOpt |= 0x02000;
|
||||
currentConfig.EmuOpt &= ~EOPT_VSYNC_MODE;
|
||||
currentConfig.EmuOpt |= EOPT_VSYNC;
|
||||
} else
|
||||
return 0;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue