summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-08-15 08:27:39 +0000
committerNils Wallménius <nils@rockbox.org>2008-08-15 08:27:39 +0000
commit01729e7a1841d8aae7be37707dbc7146348c9a64 (patch)
tree5490fd9eccdcaef39bbbb91e8a44d1caad9b2ef7 /apps/main.c
parent9464fdde2d780206e1eddba8cafbfbd4bbff83e4 (diff)
downloadrockbox-01729e7a1841d8aae7be37707dbc7146348c9a64.tar.gz
rockbox-01729e7a1841d8aae7be37707dbc7146348c9a64.zip
FS#9281 Rename of splash functions.
* Remove gui_splash() * Rename gui_syncsplash() to splashf() and remove its voice capabilities. * Rename the internal splash() to splash_internal() and introduce an externally visible splash() that handles simple splashing without printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ, "foo"); if a LANG_* id is passed it will be voiced. * Adjust all places that called gui_syncsplash() to use the correct variant from above. * Export both new functions to plugins and adjust places calling rb->splash() to use the correct variant so that we now have naming consistency between the core and plugins. * Fix one latent bug that would cause my sim to crash with the above changes and correct P2STR and P2ID macros, thanks to pondlife. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/main.c b/apps/main.c
index ecc80710a1..1f2625df6c 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -162,7 +162,7 @@ static int init_dircache(bool preinit)
162 { 162 {
163 /* This will be in default language, settings are not 163 /* This will be in default language, settings are not
164 applied yet. Not really any easy way to fix that. */ 164 applied yet. Not really any easy way to fix that. */
165 gui_syncsplash(0, str(LANG_SCANNING_DISK)); 165 splash(0, str(LANG_SCANNING_DISK));
166 clear = true; 166 clear = true;
167 } 167 }
168 168
@@ -180,7 +180,7 @@ static int init_dircache(bool preinit)
180 { 180 {
181 if (global_status.dircache_size <= 0) 181 if (global_status.dircache_size <= 0)
182 { 182 {
183 gui_syncsplash(0, str(LANG_SCANNING_DISK)); 183 splash(0, str(LANG_SCANNING_DISK));
184 clear = true; 184 clear = true;
185 } 185 }
186 result = dircache_build(global_status.dircache_size); 186 result = dircache_build(global_status.dircache_size);
@@ -191,7 +191,7 @@ static int init_dircache(bool preinit)
191 /* Initialization of dircache failed. Manual action is 191 /* Initialization of dircache failed. Manual action is
192 * necessary to enable dircache again. 192 * necessary to enable dircache again.
193 */ 193 */
194 gui_syncsplash(0, "Dircache failed, disabled. Result: %d", result); 194 splashf(0, "Dircache failed, disabled. Result: %d", result);
195 global_settings.dircache = false; 195 global_settings.dircache = false;
196 } 196 }
197 197
@@ -244,7 +244,7 @@ static void init_tagcache(void)
244 } 244 }
245#endif 245#endif
246#ifdef HAVE_LCD_BITMAP 246#ifdef HAVE_LCD_BITMAP
247 gui_syncsplash(0, "%s [%d/%d]", 247 splashf(0, "%s [%d/%d]",
248 str(LANG_TAGCACHE_INIT), ret, 248 str(LANG_TAGCACHE_INIT), ret,
249 tagcache_get_max_commit_step()); 249 tagcache_get_max_commit_step());
250#else 250#else
@@ -504,7 +504,7 @@ static void init(void)
504 if (button_hold()) 504 if (button_hold())
505#endif 505#endif
506 { 506 {
507 gui_syncsplash(HZ*2, str(LANG_RESET_DONE_CLEAR)); 507 splash(HZ*2, str(LANG_RESET_DONE_CLEAR));
508 settings_reset(); 508 settings_reset();
509 } 509 }
510 else 510 else