summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorEric Linenberg <elinenbe@umich.edu>2002-09-09 14:25:39 +0000
committerEric Linenberg <elinenbe@umich.edu>2002-09-09 14:25:39 +0000
commitecca123dd2e5ded619ad0a0285df7358619eee1d (patch)
tree24661059bf04defddaef6a251721263a639707d5 /apps/settings.c
parent14b91cca74cfb5540b33f462d8cf46f90ffa0a26 (diff)
Hardeep's browse current file patch. When hitting stop while playing, you will be on the current song, also this is configurable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2239 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 14a4a35b97..4dea1a0170 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -67,7 +67,8 @@ offset abs
0x0b 0x1f <backlight byte>
0x0c 0x20 <poweroff timer byte>
0x0d 0x21 <resume settings byte>
-0x0e 0x22 <shuffle,mp3filter,sort_case,discharge,statusbar,show_hidden>
+0x0e 0x22 <shuffle,mp3filter,sort_case,discharge,statusbar,show_hidden,
+ browse_current>
0x0f 0x23 <scroll speed>
0x10 0x24 <ff/rewind min step, acceleration rate>
0x11 0x25 <AVC byte>
@@ -266,7 +267,8 @@ int settings_save( void )
((global_settings.discharge & 1) << 3) |
((global_settings.statusbar & 1) << 4) |
((global_settings.show_hidden_files & 1) << 5) |
- ((global_settings.scrollbar & 1) << 6));
+ ((global_settings.scrollbar & 1) << 6) |
+ ((global_settings.browse_current & 1) << 7));
config_block[0xf] = (unsigned char)(global_settings.scroll_speed << 3);
@@ -355,6 +357,7 @@ void settings_load(void)
global_settings.statusbar = (config_block[0xe] >> 4) & 1;
global_settings.show_hidden_files = (config_block[0xe] >> 5) & 1;
global_settings.scrollbar = (config_block[0xe] >> 6) & 1;
+ global_settings.browse_current = (config_block[0xe] >> 7) & 1;
}
c = config_block[0xf] >> 3;
@@ -543,6 +546,7 @@ void settings_reset(void) {
global_settings.resume_index = -1;
global_settings.resume_offset = -1;
global_settings.disk_spindown = 5;
+ global_settings.browse_current = false;
}