Skip to content

Commit

Permalink
add dlman fav sync functions to music select favorite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 24, 2018
1 parent ffc2a2d commit dd3a4e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,16 @@ bool ScreenSelectMusic::Input(const InputEventPlus &input)
if (!fav_me_biatch->IsFavorited()) {
fav_me_biatch->SetFavorited(true);
pProfile->AddToFavorites(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
DLMAN->AddFavorite(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
pProfile->allplaylists.erase("Favorites");
SONGMAN->MakePlaylistFromFavorites(pProfile->FavoritedCharts, pProfile->allplaylists);
}
else {
fav_me_biatch->SetFavorited(false);
pProfile->RemoveFromFavorites(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
DLMAN->RemoveFavorite(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
}
DLMAN->RefreshFavourites();
Message msg("FavoritesUpdated");
MESSAGEMAN->Broadcast(msg);
m_MusicWheel.ChangeMusic(0);
Expand Down

0 comments on commit dd3a4e3

Please sign in to comment.