1
0
Fork 0
forked from len0rd/rockbox

settings: Remove setting ID return from find_setting()

Now that all users have replaced setting IDs with direct pointers,
find_setting() and friends don't need to return an ID value.

Change-Id: I8c5c31bb68d3bca5350d43538335265a55fd5517
This commit is contained in:
Aidan MacDonald 2022-11-30 14:50:18 +00:00
parent 767ddef550
commit 701e262d3d
15 changed files with 56 additions and 67 deletions

View file

@ -65,21 +65,21 @@ static bool nexttrack(void)
static bool volume(void)
{
const struct settings_list* vol =
rb->find_setting(&rb->global_settings->volume, NULL);
rb->find_setting(&rb->global_settings->volume);
return rb->option_screen((struct settings_list*)vol, parentvp, false, "Volume");
}
static bool shuffle(void)
{
const struct settings_list* shuffle =
rb->find_setting(&rb->global_settings->playlist_shuffle, NULL);
rb->find_setting(&rb->global_settings->playlist_shuffle);
return rb->option_screen((struct settings_list*)shuffle, parentvp, false, "Shuffle");
}
static bool repeat_mode(void)
{
const struct settings_list* repeat =
rb->find_setting(&rb->global_settings->repeat_mode, NULL);
rb->find_setting(&rb->global_settings->repeat_mode);
int old_repeat = rb->global_settings->repeat_mode;
rb->option_screen((struct settings_list*)repeat, parentvp, false, "Repeat");