use _ prefix for "hidden" (for internal, fallback, language, etc. themes); avoid

reading a file at runtime to get this info
This commit is contained in:
Glenn Maynard
2006-06-14 22:42:43 +00:00
parent 3553ab755e
commit 2e47a912f5
+1 -9
View File
@@ -187,15 +187,7 @@ bool ThemeManager::DoesThemeExist( const RString &sThemeName )
bool ThemeManager::IsThemeSelectable( const RString &sThemeName )
{
RString sDir = GetThemeDirFromName(sThemeName);
IniFile ini;
ini.ReadFile( sDir + THEME_INFO_INI );
bool b;
if( ini.GetValue("ThemeInfo","Selectable",b) && !b )
return false;
return true;
return sThemeName.Left(1) == "_";
}
RString ThemeManager::GetThemeDisplayName( const RString &sThemeName )