Changed blank music file check in Song::LoadFromSongDir to allow a blank music file if the song uses keysounds. The intent is to prevent bms files from triggering the condition, so they don't have to hit the song folder every time during loading.
This commit is contained in:
@@ -4,6 +4,15 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes
|
||||
from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
|
||||
________________________________________________________________________________
|
||||
|
||||
2015/10/11
|
||||
----------
|
||||
* [Song] Changed song loading to allow a song to have a blank MusicFile field
|
||||
if the song has any keysounds. A blank MusicFile entry can result from
|
||||
having '#' in the music file name, or be intended for bms files. Do not use
|
||||
'#' in any fields, the .sm and .ssc file formats do not support it. The
|
||||
engine has to detect that the field was loaded blank and look through the
|
||||
song folder to figure out what was supposed to be there. [kyzentun]
|
||||
|
||||
2015/10/09
|
||||
----------
|
||||
* [Edit Mode] Changed Current Second field to not have the global offset
|
||||
|
||||
+1
-1
@@ -316,7 +316,7 @@ bool Song::LoadFromSongDir( RString sDir, bool load_autosave )
|
||||
loaderSM.LoadFromSimfile( sCacheFilePath, *this, true );
|
||||
loaderSM.TidyUpData( *this, true );
|
||||
}
|
||||
if(m_sMainTitle == "" || m_sMusicFile == "")
|
||||
if(m_sMainTitle == "" || (m_sMusicFile == "" && m_vsKeysoundFile.empty()))
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user