summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c5
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;