diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-10-04 08:48:20 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-10-04 08:48:20 +0000 |
commit | a6d0abb602985189b304648532053d7e61d54171 (patch) | |
tree | eb2a935fe1c3e8c0a8cd085544cf997c3ad0ea7d /apps/settings.c | |
parent | a31bae655e92d85708a23b79ba27ace5fc2a185a (diff) |
Repeat off/all/one toggle. By Hardeep Sidhu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2498 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index cc09d60884..0ba72df110 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -91,6 +91,7 @@ offset abs 0x1c 0x30 <peak meter hold timeout (bit 0-4)> 0x1d 0x31 <peak meter clip hold timeout (bit 0-4)> 0x1e 0x32 <peak meter release step size> +0x1f 0x33 <repeat mode> <all unused space filled with 0xff> @@ -313,6 +314,7 @@ int settings_save( void ) config_block[0x1c] = (unsigned char)global_settings.peak_meter_hold; config_block[0x1d] = (unsigned char)global_settings.peak_meter_clip_hold; config_block[0x1e] = (unsigned char)global_settings.peak_meter_release; + config_block[0x1f] = (unsigned char)global_settings.repeat_mode; memcpy(&config_block[0xF8], &global_settings.resume_seed, 4); @@ -466,6 +468,9 @@ void settings_load(void) if (config_block[0x1e] != 0xFF) global_settings.peak_meter_release = config_block[0x1e]; + if (config_block[0x1f] != 0xFF) + global_settings.repeat_mode = config_block[0x1f]; + memcpy(&global_settings.resume_seed, &config_block[0xF8], 4); if (config_block[0x24] != 0xFF) @@ -623,7 +628,7 @@ void settings_reset(void) { global_settings.sort_case = false; global_settings.statusbar = true; global_settings.scrollbar = true; - global_settings.loop_playlist = true; + global_settings.repeat_mode = REPEAT_ALL; global_settings.playlist_shuffle = false; global_settings.discharge = 0; global_settings.total_uptime = 0; |