Backport custom song support. Prefs are CustomSongsEnable, CustomSongsMaxCount, CustomSongsLoadTimeout, CustomSongsMaxSeconds, CustomSongsMaxMegabytes. Metrics are NumProfileSongGroupColors and the colors with it. Profile custom load function is passed PlayerNumber now. Stepmania must run as root to save USB profile scores. (#1470)

This commit is contained in:
Kyzentun
2017-06-06 05:30:06 -07:00
committed by Colby Klein
parent 1c920a4197
commit 2aee27a276
22 changed files with 627 additions and 240 deletions
+13
View File
@@ -9,6 +9,7 @@
#include "GameState.h"
#include "ThemeManager.h"
#include "NetworkSyncManager.h"
#include "ProfileManager.h"
#include "Song.h"
#include "Course.h"
#include "Steps.h"
@@ -434,6 +435,18 @@ void MusicWheel::GetSongList( vector<Song*> &arraySongs, SortOrder so )
break;
}
FOREACH_PlayerNumber(pn)
{
if(GAMESTATE->IsPlayerEnabled(pn))
{
Profile* prof= PROFILEMAN->GetProfile(pn);
for(size_t i= 0; i < prof->m_songs.size(); ++i)
{
apAllSongs.push_back(prof->m_songs[i]);
}
}
}
// filter songs that we don't have enough stages to play
{
vector<Song*> vTempSongs;