notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
menu: add reset hotkey
[picodrive.git]
/
platform
/
common
/
config_file.c
diff --git
a/platform/common/config_file.c
b/platform/common/config_file.c
index
28bb263
..
e66d4e1
100644
(file)
--- a/
platform/common/config_file.c
+++ b/
platform/common/config_file.c
@@
-308,22
+308,19
@@
static int custom_read(menu_entry *me, const char *var, const char *val)
return 0;
return 1;
return 0;
return 1;
- case MA_
OPT2_GAMMA
:
-
if (strcasecmp(var, "Gamma correction") != 0) return 0
;
-
currentConfig.gamma = (int) (atof(val) * 100.
0);
+ case MA_
32XOPT_MSH2_CYCLES
:
+
currentConfig.msh2_khz = atoi(val)
;
+
Pico32xSetClocks(currentConfig.msh2_khz * 1000,
0);
return 1;
return 1;
- case MA_
CDOPT_READAHEAD
:
-
if (strcasecmp(var, "ReadAhead buffer") != 0) return 0
;
- Pico
CDBuffers = atoi(val) / 2
;
+ case MA_
32XOPT_SSH2_CYCLES
:
+
currentConfig.ssh2_khz = atoi(val)
;
+ Pico
32xSetClocks(0, currentConfig.ssh2_khz * 1000)
;
return 1;
return 1;
- case MA_32XOPT_MSH2_CYCLES:
- case MA_32XOPT_SSH2_CYCLES: {
- int *mul = (me->id == MA_32XOPT_MSH2_CYCLES) ? &p32x_msh2_multiplier : &p32x_ssh2_multiplier;
- *mul = ((unsigned int)atoi(val) << SH2_MULTI_SHIFT) / 7670;
+ case MA_OPT2_GAMMA:
+ currentConfig.gamma = atoi(val);
return 1;
return 1;
- }
/* PSP */
case MA_OPT3_SCALE:
/* PSP */
case MA_OPT3_SCALE:
@@
-420,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);
acts = parse_bind_val(val, &type);
if (acts == -1) {
lprintf("config: unhandled action \"%s\"\n", val);
-
return
;
+
continue
;
}
mystrip(var + 5);
}
mystrip(var + 5);