From 26964fd95760ed0a5c9db94f9ba60a843a094c36 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Sun, 1 Sep 2002 19:50:45 +0000 Subject: 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 --- apps/settings.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'apps/settings.c') 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 @@ #endif struct user_settings global_settings; -char rockboxdir[] = "/.rockbox/"; /* config/font/data file directory */ +char rockboxdir[] = ROCKBOX_DIR; /* config/font/data file directory */ #define CONFIG_BLOCK_VERSION 1 #define CONFIG_BLOCK_SIZE 512 @@ -67,7 +67,7 @@ offset abs 0x0c 0x20 0x0d 0x21 0x0e 0x22 -0x0f 0x23 +0x0f 0x23 0x10 0x24 0x11 0x25 0x12 0x26 <(int) Resume playlist index, or -1 if no playlist resume> @@ -267,9 +267,7 @@ int settings_save( void ) ((global_settings.show_hidden_files & 1) << 5) | ((global_settings.scrollbar & 1) << 6)); - config_block[0xf] = (unsigned char) - ((global_settings.scroll_speed << 3) | - (global_settings.wps_display & 7)); + config_block[0xf] = (unsigned char)(global_settings.scroll_speed << 3); config_block[0x10] = (unsigned char)global_settings.ff_rewind_accel; config_block[0x11] = (unsigned char)global_settings.avc; @@ -360,10 +358,6 @@ void settings_load(void) if (c != 31) global_settings.scroll_speed = c; - c = config_block[0xf] & 7; - if (c != 7) - global_settings.wps_display = c; - if (config_block[0x10] != 0xFF) global_settings.ff_rewind_accel = config_block[0x10]; @@ -414,7 +408,6 @@ void settings_reset(void) { global_settings.contrast = DEFAULT_CONTRAST_SETTING; global_settings.poweroff = DEFAULT_POWEROFF_SETTING; global_settings.backlight = DEFAULT_BACKLIGHT_SETTING; - global_settings.wps_display = DEFAULT_WPS_DISPLAY; global_settings.mp3filter = true; global_settings.sort_case = false; global_settings.statusbar = true; -- cgit v1.2.3