From ecca123dd2e5ded619ad0a0285df7358619eee1d Mon Sep 17 00:00:00 2001 From: Eric Linenberg Date: Mon, 9 Sep 2002 14:25:39 +0000 Subject: 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 --- apps/settings.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/settings.c') 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 0x0c 0x20 0x0d 0x21 -0x0e 0x22 +0x0e 0x22 0x0f 0x23 0x10 0x24 0x11 0x25 @@ -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; } -- cgit v1.2.3