From 3484470e9f1069d8508da67bebe7ffb262be9e66 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 12 Oct 2011 18:51:36 -0500 Subject: [PATCH] [Steps] Fix a bug where e.g. ".SM" ".DWI" ".Sm" ".sM" files wouldn't properly load since the code was expecting lowercase. --- Docs/Changelog_sm5.txt | 5 +++++ src/Steps.cpp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index cb447e9870..f46fd8875e 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,11 @@ ________________________________________________________________________________ StepMania 5.0 $next | 2011xxxx -------------------------------------------------------------------------------- +2011/10/12 +---------- +* [Steps] Fix a bug where e.g. ".SM" ".DWI" ".Sm" ".sM" files + wouldn't properly load since the code was expecting lowercase. [AJ] + 2011/10/10 ---------- * [NotesLoaderBMS] Add the time signature segments. [theDtTvB] diff --git a/src/Steps.cpp b/src/Steps.cpp index 84d986a5e7..91c6c0ace3 100644 --- a/src/Steps.cpp +++ b/src/Steps.cpp @@ -105,6 +105,8 @@ bool Steps::GetNoteDataFromSimfile() // Replace the line below with the Steps' cache file. RString stepFile = this->GetFilename(); RString extension = GetExtension(stepFile); + extension.MakeLower(); // must do this because the code is expecting lowercase + if (extension.empty() || extension == "ssc") // remember cache files. { SSCLoader loader;