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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user