1
0
Fork 0
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:
Jörg Hohensohn 2004-06-19 09:39:25 +00:00
parent 92e19db34a
commit 75e7e501d5

View file

@ -93,7 +93,7 @@ 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 */
@ -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();