forked from len0rd/rockbox
oops, forgot to take out my test hack, some comments improved
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4775 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
92e19db34a
commit
75e7e501d5
1 changed files with 3 additions and 6 deletions
|
|
@ -93,14 +93,14 @@ struct bit_entry
|
||||||
/* how many bits within the bitfield (1-32), MSB set if value is signed */
|
/* how many bits within the bitfield (1-32), MSB set if value is signed */
|
||||||
unsigned char bit_size; /* min 6+1 bit */
|
unsigned char bit_size; /* min 6+1 bit */
|
||||||
/* how many bytes in the global_settings struct (1,2,4) */
|
/* how many bytes in the global_settings struct (1,2,4) */
|
||||||
unsigned char byte_size; /* min 2 bits */
|
unsigned char byte_size; /* min 3 bits */
|
||||||
/* store position in global_settings struct */
|
/* store position in global_settings struct */
|
||||||
short settings_offset; /* min 9 bit, better 10 */
|
short settings_offset; /* min 9 bit, better 10 */
|
||||||
/* default value */
|
/* default value */
|
||||||
int default_val; /* min 15 bit */
|
int default_val; /* min 15 bit */
|
||||||
/* variable name in a .cfg file, NULL if not to be saved */
|
/* variable name in a .cfg file, NULL if not to be saved */
|
||||||
const char* cfg_name;
|
const char* cfg_name;
|
||||||
/* set of values, or NULL for a numerical value */
|
/* set of values, or NULL for a numerical value */
|
||||||
const char* cfg_val;
|
const char* cfg_val;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1227,9 +1227,6 @@ bool settings_save_config(void)
|
||||||
/* allow user to modify filename */
|
/* allow user to modify filename */
|
||||||
while (!done) {
|
while (!done) {
|
||||||
if (!kbd_input(filename, sizeof filename)) {
|
if (!kbd_input(filename, sizeof filename)) {
|
||||||
#ifdef WIN32 /* test hack !!! */
|
|
||||||
strcpy(filename, "C:/test.cfg");
|
|
||||||
#endif
|
|
||||||
fd = creat(filename,0);
|
fd = creat(filename,0);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue