diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-09-01 19:50:45 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-01 19:50:45 +0000 |
commit | 26964fd95760ed0a5c9db94f9ba60a843a094c36 (patch) | |
tree | 6eb171ae19b087e29686815a130d06693ebc8a1b /apps/settings.c | |
parent | 862f479becd57735cc8c1fb8c9af46ace37adcbe (diff) | |
download | rockbox-26964fd95760ed0a5c9db94f9ba60a843a094c36.tar.gz rockbox-26964fd95760ed0a5c9db94f9ba60a843a094c36.zip |
Merged Magnus Holmgren's wps.config code.
Moved wps.config from root to /.rockbox dir.
Removed WPS display setting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/settings.c b/apps/settings.c index 2926b6a175..6ca733cf37 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | struct user_settings global_settings; | 44 | struct user_settings global_settings; |
45 | char rockboxdir[] = "/.rockbox/"; /* config/font/data file directory */ | 45 | char rockboxdir[] = ROCKBOX_DIR; /* config/font/data file directory */ |
46 | 46 | ||
47 | #define CONFIG_BLOCK_VERSION 1 | 47 | #define CONFIG_BLOCK_VERSION 1 |
48 | #define CONFIG_BLOCK_SIZE 512 | 48 | #define CONFIG_BLOCK_SIZE 512 |
@@ -67,7 +67,7 @@ offset abs | |||
67 | 0x0c 0x20 <poweroff timer byte> | 67 | 0x0c 0x20 <poweroff timer byte> |
68 | 0x0d 0x21 <resume settings byte> | 68 | 0x0d 0x21 <resume settings byte> |
69 | 0x0e 0x22 <shuffle,mp3filter,sort_case,discharge,statusbar,show_hidden> | 69 | 0x0e 0x22 <shuffle,mp3filter,sort_case,discharge,statusbar,show_hidden> |
70 | 0x0f 0x23 <scroll speed & WPS display byte> | 70 | 0x0f 0x23 <scroll speed> |
71 | 0x10 0x24 <ff/rewind accleration rate> | 71 | 0x10 0x24 <ff/rewind accleration rate> |
72 | 0x11 0x25 <AVC byte> | 72 | 0x11 0x25 <AVC byte> |
73 | 0x12 0x26 <(int) Resume playlist index, or -1 if no playlist resume> | 73 | 0x12 0x26 <(int) Resume playlist index, or -1 if no playlist resume> |
@@ -267,9 +267,7 @@ int settings_save( void ) | |||
267 | ((global_settings.show_hidden_files & 1) << 5) | | 267 | ((global_settings.show_hidden_files & 1) << 5) | |
268 | ((global_settings.scrollbar & 1) << 6)); | 268 | ((global_settings.scrollbar & 1) << 6)); |
269 | 269 | ||
270 | config_block[0xf] = (unsigned char) | 270 | config_block[0xf] = (unsigned char)(global_settings.scroll_speed << 3); |
271 | ((global_settings.scroll_speed << 3) | | ||
272 | (global_settings.wps_display & 7)); | ||
273 | 271 | ||
274 | config_block[0x10] = (unsigned char)global_settings.ff_rewind_accel; | 272 | config_block[0x10] = (unsigned char)global_settings.ff_rewind_accel; |
275 | config_block[0x11] = (unsigned char)global_settings.avc; | 273 | config_block[0x11] = (unsigned char)global_settings.avc; |
@@ -360,10 +358,6 @@ void settings_load(void) | |||
360 | if (c != 31) | 358 | if (c != 31) |
361 | global_settings.scroll_speed = c; | 359 | global_settings.scroll_speed = c; |
362 | 360 | ||
363 | c = config_block[0xf] & 7; | ||
364 | if (c != 7) | ||
365 | global_settings.wps_display = c; | ||
366 | |||
367 | if (config_block[0x10] != 0xFF) | 361 | if (config_block[0x10] != 0xFF) |
368 | global_settings.ff_rewind_accel = config_block[0x10]; | 362 | global_settings.ff_rewind_accel = config_block[0x10]; |
369 | 363 | ||
@@ -414,7 +408,6 @@ void settings_reset(void) { | |||
414 | global_settings.contrast = DEFAULT_CONTRAST_SETTING; | 408 | global_settings.contrast = DEFAULT_CONTRAST_SETTING; |
415 | global_settings.poweroff = DEFAULT_POWEROFF_SETTING; | 409 | global_settings.poweroff = DEFAULT_POWEROFF_SETTING; |
416 | global_settings.backlight = DEFAULT_BACKLIGHT_SETTING; | 410 | global_settings.backlight = DEFAULT_BACKLIGHT_SETTING; |
417 | global_settings.wps_display = DEFAULT_WPS_DISPLAY; | ||
418 | global_settings.mp3filter = true; | 411 | global_settings.mp3filter = true; |
419 | global_settings.sort_case = false; | 412 | global_settings.sort_case = false; |
420 | global_settings.statusbar = true; | 413 | global_settings.statusbar = true; |