summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-01-24 02:19:22 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-01-24 02:19:22 +0000
commit228d62dd18906eaef814ec63cf888b30a94cd1c8 (patch)
treea15e27e0e52222e4514e2b163e726869b33b5397 /apps/main.c
parentcdcffd988372606abea31fad4a815f0b4968b21c (diff)
downloadrockbox-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/main.c')
-rw-r--r--apps/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/main.c b/apps/main.c
index 5137ff9..dac7ac7 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -140,7 +140,7 @@ static int init_dircache(bool preinit)
if (result < 0)
{
firmware_settings.disk_clean = false;
- if (global_settings.dircache_size <= 0)
+ if (global_status.dircache_size <= 0)
{
/* This will be in default language, settings are not
applied yet. Not really any easy way to fix that. */
@@ -148,7 +148,7 @@ static int init_dircache(bool preinit)
clear = true;
}
- dircache_build(global_settings.dircache_size);
+ dircache_build(global_status.dircache_size);
}
}
else
@@ -160,12 +160,12 @@ static int init_dircache(bool preinit)
if (!dircache_is_enabled()
&& !dircache_is_initializing())
{
- if (global_settings.dircache_size <= 0)
+ if (global_status.dircache_size <= 0)
{
gui_syncsplash(0, true, str(LANG_DIRCACHE_BUILDING));
clear = true;
}
- result = dircache_build(global_settings.dircache_size);
+ result = dircache_build(global_status.dircache_size);
}
if (result < 0)
@@ -176,8 +176,8 @@ static int init_dircache(bool preinit)
{
backlight_on();
show_logo();
- global_settings.dircache_size = dircache_get_cache_size();
- settings_save();
+ global_status.dircache_size = dircache_get_cache_size();
+ status_save();
}
return result;