Somehow, songs seem to be missing groups when we check them
in SongManager::GetExtraStageInfo. Sanity check.
This commit is contained in:
@@ -381,7 +381,9 @@ bool Song::LoadFromSongDir( CString sDir )
|
|||||||
// save group name
|
// save group name
|
||||||
CStringArray sDirectoryParts;
|
CStringArray sDirectoryParts;
|
||||||
split( m_sSongDir, SLASH, sDirectoryParts, false );
|
split( m_sSongDir, SLASH, sDirectoryParts, false );
|
||||||
|
ASSERT( sDirectoryParts.size() >= 4 ); /* Songs/Slow/Taps/ */
|
||||||
m_sGroupName = sDirectoryParts[sDirectoryParts.size()-3]; // second from last item
|
m_sGroupName = sDirectoryParts[sDirectoryParts.size()-3]; // second from last item
|
||||||
|
ASSERT( m_sGroupName != "" );
|
||||||
|
|
||||||
//
|
//
|
||||||
// First look in the cache for this song (without loading NoteData)
|
// First look in the cache for this song (without loading NoteData)
|
||||||
|
|||||||
Reference in New Issue
Block a user