Shuffle without bgm (#157)

* add ability to shuffle without bgm
press B twice

* add license thingy for icons8, and thanks for their amazing icons
This commit is contained in:
LiquidFenrir
2018-05-10 18:52:14 +02:00
committed by Alex Taber
parent 4dbc71489f
commit 8e43bb1a74
7 changed files with 46 additions and 11 deletions

View File

@@ -286,9 +286,24 @@ static void change_selected(Entry_List_s * list, int change_value)
static void toggle_shuffle(Entry_List_s * list)
{
Entry_s * current_entry = &list->entries[list->selected_entry];
if(current_entry->in_shuffle) list->shuffle_count--;
else list->shuffle_count++;
current_entry->in_shuffle = !current_entry->in_shuffle;
if(current_entry->in_shuffle)
{
if(current_entry->no_bgm_shuffle)
{
current_entry->in_shuffle = false;
current_entry->no_bgm_shuffle = false;
list->shuffle_count--;
}
else
{
current_entry->no_bgm_shuffle = true;
}
}
else
{
current_entry->in_shuffle = true;
list->shuffle_count++;
}
}
int main(void)