separate "credits info" text into "credits" and "player info"

force reload of metrics after retry for missing metric
This commit is contained in:
Chris Danford
2003-11-07 20:43:17 +00:00
parent 354fbd9a87
commit 1cc5d0abf0
4 changed files with 76 additions and 44 deletions
+8 -3
View File
@@ -396,9 +396,14 @@ void ThemeManager::ReloadMetricsIfNecessary()
if( m_uHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||
m_uHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) )
{
SwitchThemeAndLanguage(m_sCurThemeName, m_sCurLanguage); // force a reload of the metrics cache
SCREENMAN->SystemMessage( "Reloaded metrics" );
ReloadMetrics();
}
}
void ThemeManager::ReloadMetrics()
{
SwitchThemeAndLanguage(m_sCurThemeName, m_sCurLanguage); // force a reload of the metrics cache
SCREENMAN->SystemMessage( "Reloaded metrics" );
//
// clear theme path cache
@@ -428,7 +433,7 @@ try_metric_again:
break; // fall through
case ArchHooks::retry:
FlushDirCache();
ReloadMetricsIfNecessary();
ReloadMetrics();
goto try_metric_again;
case ArchHooks::ignore:
return "";