Merged per-chart music. Updated changelog.

This commit is contained in:
Kyzentun
2015-03-09 19:06:57 -06:00
16 changed files with 172 additions and 5 deletions
+18
View File
@@ -917,6 +917,24 @@ bool SongUtil::ValidateCurrentSongPreview(const RString& answer, RString& error)
return valid;
}
static LocalizedString MUSIC_DOES_NOT_EXIST("SongUtil", "The music file '%s' does not exist.");
bool SongUtil::ValidateCurrentStepsMusic(const RString &answer, RString &error)
{
if(answer.empty())
return true;
Steps *pSteps = GAMESTATE->m_pCurSteps[PLAYER_1];
RString real_file= pSteps->GetMusicFile();
pSteps->SetMusicFile(answer);
RString path= pSteps->GetMusicPath();
bool valid= DoesFileExist(path);
pSteps->SetMusicFile(real_file);
if(!valid)
{
error= ssprintf(MUSIC_DOES_NOT_EXIST.GetValue(), answer.c_str());
}
return valid;
}
void SongUtil::GetAllSongGenres( vector<RString> &vsOut )
{
set<RString> genres;