summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-06-29 12:23:09 +0000
committerChristi Scarborough <christi@coraline.org>2005-06-29 12:23:09 +0000
commit9e8918b0866b249a55c06a16a243cdd3dcdad305 (patch)
tree954d2eab9141f0a9a0777f9ce9eceb15af1b569a /apps/wps.c
parent1f45cce4262bde3f91844701085076892b4743f8 (diff)
downloadrockbox-9e8918b0866b249a55c06a16a243cdd3dcdad305.tar.gz
rockbox-9e8918b0866b249a55c06a16a243cdd3dcdad305.zip
Resume rework. With the new resume function, 'Ask' and 'Ask Once' are redundant options, since you can resume after any startup using the resume key. These have been stripped out, and the resume code has been streamlined. A small bug in button handler initialisation has been fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6911 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/wps.c b/apps/wps.c
index be0ad448dd..40c9194793 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -252,7 +252,6 @@ static bool update(void)
252 252
253 /* save resume data */ 253 /* save resume data */
254 if ( id3 && 254 if ( id3 &&
255 global_settings.resume &&
256 global_settings.resume_offset != id3->offset ) { 255 global_settings.resume_offset != id3->offset ) {
257 256
258 if (!playlist_get_resume_info(&global_settings.resume_index)) 257 if (!playlist_get_resume_info(&global_settings.resume_index))
@@ -391,7 +390,7 @@ long wps_show(void)
391 390
392 /* if another thread paused audio, we are probably in car mode, 391 /* if another thread paused audio, we are probably in car mode,
393 about to shut down. lets save the settings. */ 392 about to shut down. lets save the settings. */
394 if (paused && global_settings.resume) { 393 if (paused) {
395 settings_save(); 394 settings_save();
396#ifndef HAVE_RTC 395#ifndef HAVE_RTC
397 ata_flush(); 396 ata_flush();
@@ -544,12 +543,10 @@ long wps_show(void)
544 fade(0); 543 fade(0);
545 else 544 else
546 audio_pause(); 545 audio_pause();
547 if (global_settings.resume) { 546 settings_save();
548 settings_save();
549#ifndef HAVE_RTC 547#ifndef HAVE_RTC
550 ata_flush(); 548 ata_flush();
551#endif 549#endif
552 }
553 } 550 }
554 break; 551 break;
555 552