diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-01-24 02:19:22 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-01-24 02:19:22 +0000 |
| commit | 228d62dd18906eaef814ec63cf888b30a94cd1c8 (patch) | |
| tree | a15e27e0e52222e4514e2b163e726869b33b5397 /apps/tree.c | |
| parent | cdcffd988372606abea31fad4a815f0b4968b21c (diff) | |
| download | rockbox-228d62dd18906eaef814ec63cf888b30a94cd1c8.zip rockbox-228d62dd18906eaef814ec63cf888b30a94cd1c8.tar.gz rockbox-228d62dd18906eaef814ec63cf888b30a94cd1c8.tar.bz2 rockbox-228d62dd18906eaef814ec63cf888b30a94cd1c8.tar.xz | |
Split the system status variables out of global_settings and put them into a new struct global_status. Use status_save() if these need
saving.
Added car_adapter_mode to the nvram settings, so nvram settings will be reset.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
| -rw-r--r-- | apps/tree.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/tree.c b/apps/tree.c index e9ac6b5..edd238a 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -474,10 +474,10 @@ void reload_directory(void) static void start_resume(bool just_powered_on) { bool do_resume = false; - if ( global_settings.resume_index != -1 ) { + if ( global_status.resume_index != -1 ) { DEBUGF("Resume index %X offset %X\n", - global_settings.resume_index, - global_settings.resume_offset); + global_status.resume_index, + global_status.resume_offset); #ifdef HAVE_ALARM_MOD if ( rtc_check_alarm_started(true) ) { @@ -507,8 +507,8 @@ static void start_resume(bool just_powered_on) if (playlist_resume() != -1) { - playlist_start(global_settings.resume_index, - global_settings.resume_offset); + playlist_start(global_status.resume_index, + global_status.resume_offset); start_wps = true; } @@ -1439,10 +1439,10 @@ void tree_flush(void) #ifdef HAVE_DIRCACHE { - int old_val = global_settings.dircache_size; + int old_val = global_status.dircache_size; if (global_settings.dircache) { - global_settings.dircache_size = dircache_get_cache_size(); + global_status.dircache_size = dircache_get_cache_size(); # ifdef HAVE_EEPROM_SETTINGS dircache_save(); # endif @@ -1450,10 +1450,10 @@ void tree_flush(void) } else { - global_settings.dircache_size = 0; + global_status.dircache_size = 0; } - if (old_val != global_settings.dircache_size) - settings_save(); + if (old_val != global_status.dircache_size) + status_save(); } #endif } @@ -1484,7 +1484,7 @@ void tree_restore(void) gui_textarea_update(&screens[i]); } - dircache_build(global_settings.dircache_size); + dircache_build(global_status.dircache_size); /* Clean the text when we are done. */ FOR_NB_SCREENS(i) |