search Data\Type.dat for the Preferences group in addition to reading from the command line
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user