From 1d0fb92ebedc8b1e73eed40a25efaac96e4a5355 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 23 Apr 2011 16:04:40 -0500 Subject: [PATCH] [CourseLoaderCRS] Fixed loading of Player's Best/Most Played courses, probably others too. --- Docs/Changelog_sm-ssc.txt | 5 +++++ src/CourseLoaderCRS.cpp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index b845b720d1..c69c1ae8c4 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -13,6 +13,11 @@ _____________________________________________________________________________ sm-ssc v1.2.5 | 201104?? -------------------------------------------------------------------------------- +20110423 +-------- +* [CourseLoaderCRS] Fixed loading of Player's Best/Most Played courses, + probably others too. [AJ] + 20110422 -------- * [Banner] Added ScrollSpeedDivisor metric; controls the scroll speed of diff --git a/src/CourseLoaderCRS.cpp b/src/CourseLoaderCRS.cpp index d0bd999294..71c474425e 100644 --- a/src/CourseLoaderCRS.cpp +++ b/src/CourseLoaderCRS.cpp @@ -161,6 +161,7 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou // infer entry::Type from the first param // todo: make sure these aren't generating bogus entries due // to a lack of songs. -aj + LOG->Trace("[CourseLoaderCRS] sParams[1] = %s",sParams[1].c_str()); // most played if( sParams[1].Left(strlen("BEST")) == "BEST" ) { @@ -176,7 +177,7 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou new_entry.songSort = SongSort_FewestPlays; } // best grades - if( sParams[1].Left(strlen("GRADEBEST")) == "GRADEBEST" ) + else if( sParams[1].Left(strlen("GRADEBEST")) == "GRADEBEST" ) { new_entry.iChooseIndex = atoi( sParams[1].Right(sParams[1].size()-strlen("GRADEBEST")) ) - 1; CLAMP( new_entry.iChooseIndex, 0, 500 );