From 8d2316f1c326cb909b92c94e1b7f162dae6ffeea Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 7 Nov 2005 05:40:22 +0000 Subject: [PATCH] search Data\Type.dat for the Preferences group in addition to reading from the command line --- stepmania/src/ThemeManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index 2632619e83..d62109c8ad 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -38,6 +38,7 @@ const CString LANGUAGES_SUBDIR = "Languages/"; const CString BASE_LANGUAGE = "english"; const CString THEMES_DIR = "Themes/"; const CString METRICS_FILE = "metrics.ini"; +const CString TYPE_DAT_FILE = "Data/Type.dat"; struct Theme @@ -930,7 +931,13 @@ void ThemeManager::GetMetricsThatBeginWith( const CString &sClassName_, const CS CString ThemeManager::GetPreferencesSection() const { CString sSection = "Preferences"; + + // OK if this fails + GetFileContents( TYPE_DAT_FILE, sSection, true ); + + // OK if this fails GetCommandlineArgument( "Type", &sSection ); + return sSection; }