Allow songs with invalid characters such as # in the title to work by calling TidyUpData after loading.

This commit is contained in:
Kyzentun
2015-04-10 22:40:49 -06:00
parent 1c3db82537
commit cf3c967a51
+7
View File
@@ -316,6 +316,13 @@ bool Song::LoadFromSongDir( RString sDir, bool load_autosave )
loaderSM.LoadFromSimfile( sCacheFilePath, *this, true );
loaderSM.TidyUpData( *this, true );
}
if(m_sMainTitle == "" || m_sMusicFile == "")
{
LOG->Warn("Main title or music file for '%s' came up blank, forced to fall back on TidyUpData to fix title and paths. Do not use # or ; in a song title.", m_sSongDir.c_str());
// Tell TidyUpData that it's not loaded from the cache because it needs
// to hit the song folder to find the files that weren't found. -Kyz
TidyUpData(false, false);
}
}
else
{