X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fconfig_file.c;h=e66d4e1c47bb240af9395b3ba423b07150d66f4a;hb=9db6a54485501b56b0f2f5db4d093c38fe495bda;hp=f8f7fdf13fb4b233958a5473d5a0da954ce1fa61;hpb=b59172e3d428eb6848e6874861804c79bbc9d1ec;p=picodrive.git diff --git a/platform/common/config_file.c b/platform/common/config_file.c index f8f7fdf..e66d4e1 100644 --- a/platform/common/config_file.c +++ b/platform/common/config_file.c @@ -308,11 +308,6 @@ static int custom_read(menu_entry *me, const char *var, const char *val) return 0; return 1; - case MA_CDOPT_READAHEAD: - if (strcasecmp(var, "ReadAhead buffer") != 0) return 0; - PicoCDBuffers = atoi(val) / 2; - return 1; - case MA_32XOPT_MSH2_CYCLES: currentConfig.msh2_khz = atoi(val); Pico32xSetClocks(currentConfig.msh2_khz * 1000, 0); @@ -323,6 +318,10 @@ static int custom_read(menu_entry *me, const char *var, const char *val) Pico32xSetClocks(0, currentConfig.ssh2_khz * 1000); return 1; + case MA_OPT2_GAMMA: + currentConfig.gamma = atoi(val); + return 1; + /* PSP */ case MA_OPT3_SCALE: if (strcasecmp(var, "Scale factor") != 0) return 0; @@ -418,7 +417,7 @@ static void keys_parse_all(FILE *f) acts = parse_bind_val(val, &type); if (acts == -1) { lprintf("config: unhandled action \"%s\"\n", val); - return; + continue; } mystrip(var + 5);