diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-08-16 14:41:47 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-16 14:41:47 +0000 |
| commit | 6224cdb16677cae7b65b0598eec3381a6fb6a4aa (patch) | |
| tree | 9ad9b39557492606c853e7f14c359bca5e0a3b65 /apps/settings_menu.c | |
| parent | 085e77467565aba251c31721e92bc7ebd7baa61f (diff) | |
| download | rockbox-6224cdb16677cae7b65b0598eec3381a6fb6a4aa.zip rockbox-6224cdb16677cae7b65b0598eec3381a6fb6a4aa.tar.gz rockbox-6224cdb16677cae7b65b0598eec3381a6fb6a4aa.tar.bz2 rockbox-6224cdb16677cae7b65b0598eec3381a6fb6a4aa.tar.xz | |
Added resume. Works in dirs and playlists, shuffled or not. Resumes mid-song, but press pause on players before you shutdown so they get a chance to store the position on disk. Recorders use RTC ram. Todo: Time display is wrong after mid-track resume and ffd/rew is not handled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1787 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 0de99b0..e66d0f3 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -57,6 +57,11 @@ static void sort_case(void) set_bool( "[Sort case sensitive]", &global_settings.sort_case ); } +static void resume(void) +{ + set_bool( "[Resume]", &global_settings.resume ); +} + static void backlight_timer(void) { char* names[] = { "off", "on ", @@ -153,13 +158,13 @@ void settings_menu(void) { "Time/Date", timedate_set }, #endif { "FF/Rewind", ff_rewind }, + { "Resume", resume }, }; bool old_shuffle = global_settings.playlist_shuffle; m=menu_init( items, sizeof items / sizeof(struct menu_items) ); menu_run(m); menu_exit(m); - settings_save(); if (old_shuffle != global_settings.playlist_shuffle) { |