Fixed Song/Stage counter in Oni/Endless

This commit is contained in:
Chris Danford
2002-08-01 05:11:11 +00:00
parent 4e1bd74ee6
commit 0e0a328191
13 changed files with 119 additions and 98 deletions
+2 -14
View File
@@ -282,8 +282,8 @@ bool Song::LoadFromSongDir( CString sDir )
// save group name
CStringArray sDirectoryParts;
split( m_sSongDir, "\\", sDirectoryParts, true );
m_sGroupName = sDirectoryParts[1];
split( m_sSongDir, "\\", sDirectoryParts, false );
m_sGroupName = sDirectoryParts[sDirectoryParts.GetSize()-3]; // second from last item
//
@@ -789,12 +789,6 @@ bool Song::LoadFromSMFile( CString sPath )
int i;
// get group name
CStringArray sDirectoryParts;
split( m_sSongDir, "\\", sDirectoryParts, true );
m_sGroupName = sDirectoryParts[1];
MsdFile msd;
bool bResult = msd.ReadFile( sPath );
if( !bResult )
@@ -961,12 +955,6 @@ bool Song::LoadFromKSFDir( CString sDir )
CString sPath = m_sSongDir + arrayKSFFileNames[0];
// get group name
CStringArray sDirectoryParts;
split( m_sSongDir, "\\", sDirectoryParts, true );
m_sGroupName = sDirectoryParts[1];
MsdFile msd;
bool bResult = msd.ReadFile( sPath );
if( !bResult )