search Data\Type.dat for the Preferences group in addition to reading from the command line

This commit is contained in:
Chris Danford
2005-11-07 05:40:22 +00:00
parent d1c968f0ae
commit 8d2316f1c3
+7
View File
@@ -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;
}