store course group names

show courses on wheel with a group color
This commit is contained in:
Chris Danford
2005-06-03 01:57:10 +00:00
parent 6cdd8afefd
commit 91d375d31a
9 changed files with 374 additions and 322 deletions
+10
View File
@@ -72,6 +72,15 @@ void Course::LoadFromCRSFile( CString sPath )
m_sPath = sPath; // save path
// save group name
{
CStringArray parts;
split( sPath, "/", parts, false );
if( parts.size() >= 4 ) // e.g. "/Courses/blah/fun.cvs"
m_sGroupName = parts[parts.size()-2];
}
bool bUseCache = true;
{
/* First look in the cache for this course. Don't bother
@@ -375,6 +384,7 @@ void Course::Init()
m_iCustomMeter[dc] = -1;
m_entries.clear();
m_sPath = "";
m_sGroupName = "";
m_sMainTitle = "";
m_sMainTitleTranslit = "";
m_sSubTitle = "";