From 053d904645885f3e4003071bb54c649ee5aa26e7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Aug 2002 15:47:30 +0000 Subject: Bill Napier's patch slightly remodelled. This adds a setting called "Show hidden files" that if enabled will show files with the hidden attribute and/or starting with a dot in the dir browser. If the setting is set to Off, files/dirs starting with a dot or that have the hidden attribute set will be... yes, hidden. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1926 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index afd9840b2a..11a4647447 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -259,7 +259,8 @@ int settings_save( void ) ((global_settings.mp3filter & 1) << 1) | ((global_settings.sort_case & 1) << 2) | ((global_settings.discharge & 1) << 3) | - ((global_settings.statusbar & 1) << 4)); + ((global_settings.statusbar & 1) << 4) | + ((global_settings.show_hidden_files & 1) << 5)); config_block[0xf] = (unsigned char) ((global_settings.scroll_speed << 3) | @@ -345,6 +346,7 @@ void settings_load(void) global_settings.sort_case = (config_block[0xe] >> 2) & 1; global_settings.discharge = (config_block[0xe] >> 3) & 1; global_settings.statusbar = (config_block[0xe] >> 4) & 1; + global_settings.show_hidden_files = (config_block[0xe] >> 5) & 1; } c = config_block[0xf] >> 3; @@ -410,6 +412,7 @@ void settings_reset(void) { global_settings.discharge = 0; global_settings.total_uptime = 0; global_settings.scroll_speed = 8; + global_settings.show_hidden_files = false; global_settings.ff_rewind = DEFAULT_FF_REWIND_SETTING; global_settings.resume_index = -1; global_settings.resume_offset = -1; -- cgit v1.2.3