don't warn about reloads for the first load

This commit is contained in:
Glenn Maynard
2003-03-11 19:02:09 +00:00
parent b14c6cf846
commit eaf41bad5c
+4
View File
@@ -38,6 +38,7 @@ ThemeManager::ThemeManager()
m_fNextReloadTicks = 0;
m_sCurThemeName = BASE_THEME_NAME; // Use the base theme for now. It's up to PrefsManager to change this.
m_uHashForCurThemeMetrics = m_uHashForBaseThemeMetrics = 0;
CStringArray arrayThemeNames;
GetAllThemeNames( arrayThemeNames );
@@ -283,9 +284,12 @@ try_metric_again:
m_fNextReloadTicks = RageTimer::GetTimeSinceStart()+1.0f;
if( m_uHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||
m_uHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) )
{
if(m_uHashForBaseThemeMetrics)
{
LOG->Warn( "Metrics file is out of date. Reloading..." );
// MessageBeep( MB_OK );
}
SwitchTheme(m_sCurThemeName); // force a reload of the metrics cache
}
}