"i'm going to bed--oh wait, I just introduced a stupid bug" commit.

This commit is contained in:
Glenn Maynard
2002-09-10 11:33:08 +00:00
parent ad68ba1bd4
commit 3022600bf3
+2 -2
View File
@@ -993,7 +993,7 @@ int Song::GetNumTimesPlayed() const
CString Song::GetMusicPath() const
{
if(m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath)
if(m_sSongDir != "" && m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath)
return PREFSMAN->m_DWIPath+"\\"+m_sMusicFile;
return m_sMusicFile.Left(2) == ".\\"? m_sMusicFile : m_sSongDir+m_sMusicFile;
@@ -1010,7 +1010,7 @@ CString Song::GetBackgroundPath() const
}
CString Song::GetCDTitlePath() const
{
if(m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath)
if(m_sSongDir != "" && m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath)
return PREFSMAN->m_DWIPath+"\\"+m_sCDTitleFile;
return m_sMusicFile.Left(2) == ".\\" ? m_sCDTitleFile : m_sSongDir+m_sCDTitleFile;