diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-22 15:47:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-22 15:47:30 +0000 |
commit | 053d904645885f3e4003071bb54c649ee5aa26e7 (patch) | |
tree | 7764e51de2325455610e99f8be2b504d42f534fb /apps/settings.c | |
parent | c94aa3273106c1b016d6007a8b3c2c529caf136a (diff) | |
download | rockbox-053d904645885f3e4003071bb54c649ee5aa26e7.tar.gz rockbox-053d904645885f3e4003071bb54c649ee5aa26e7.zip |
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
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 ) | |||
259 | ((global_settings.mp3filter & 1) << 1) | | 259 | ((global_settings.mp3filter & 1) << 1) | |
260 | ((global_settings.sort_case & 1) << 2) | | 260 | ((global_settings.sort_case & 1) << 2) | |
261 | ((global_settings.discharge & 1) << 3) | | 261 | ((global_settings.discharge & 1) << 3) | |
262 | ((global_settings.statusbar & 1) << 4)); | 262 | ((global_settings.statusbar & 1) << 4) | |
263 | ((global_settings.show_hidden_files & 1) << 5)); | ||
263 | 264 | ||
264 | config_block[0xf] = (unsigned char) | 265 | config_block[0xf] = (unsigned char) |
265 | ((global_settings.scroll_speed << 3) | | 266 | ((global_settings.scroll_speed << 3) | |
@@ -345,6 +346,7 @@ void settings_load(void) | |||
345 | global_settings.sort_case = (config_block[0xe] >> 2) & 1; | 346 | global_settings.sort_case = (config_block[0xe] >> 2) & 1; |
346 | global_settings.discharge = (config_block[0xe] >> 3) & 1; | 347 | global_settings.discharge = (config_block[0xe] >> 3) & 1; |
347 | global_settings.statusbar = (config_block[0xe] >> 4) & 1; | 348 | global_settings.statusbar = (config_block[0xe] >> 4) & 1; |
349 | global_settings.show_hidden_files = (config_block[0xe] >> 5) & 1; | ||
348 | } | 350 | } |
349 | 351 | ||
350 | c = config_block[0xf] >> 3; | 352 | c = config_block[0xf] >> 3; |
@@ -410,6 +412,7 @@ void settings_reset(void) { | |||
410 | global_settings.discharge = 0; | 412 | global_settings.discharge = 0; |
411 | global_settings.total_uptime = 0; | 413 | global_settings.total_uptime = 0; |
412 | global_settings.scroll_speed = 8; | 414 | global_settings.scroll_speed = 8; |
415 | global_settings.show_hidden_files = false; | ||
413 | global_settings.ff_rewind = DEFAULT_FF_REWIND_SETTING; | 416 | global_settings.ff_rewind = DEFAULT_FF_REWIND_SETTING; |
414 | global_settings.resume_index = -1; | 417 | global_settings.resume_index = -1; |
415 | global_settings.resume_offset = -1; | 418 | global_settings.resume_offset = -1; |