From eaf41bad5c6bf41fc14bb2a91ddbde424f18354f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 11 Mar 2003 19:02:09 +0000 Subject: [PATCH] don't warn about reloads for the first load --- stepmania/src/ThemeManager.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index b076cf8756..a8f7a88e1c 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -38,7 +38,8 @@ 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 ); } @@ -284,8 +285,11 @@ try_metric_again: if( m_uHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) || m_uHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) ) { - LOG->Warn( "Metrics file is out of date. Reloading..." ); -// MessageBeep( MB_OK ); + 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 } }