fix not loading correctly the Common Sounds in ScreenManager. now loads and reloads fine

This commit is contained in:
Hugo Hromic M
2004-08-21 17:20:30 +00:00
parent 56e930e1b6
commit 792af31c7a
4 changed files with 16 additions and 9 deletions
+10 -7
View File
@@ -341,13 +341,6 @@ ScreenManager::ScreenManager()
m_ScreenBuffered = NULL;
m_MessageSendOnPop = SM_None;
m_soundStart.Load( THEME->GetPathS("Common","start") );
m_soundCoin.Load( THEME->GetPathS("Common","coin") );
m_soundInvalid.Load( THEME->GetPathS("Common","invalid") );
m_soundScreenshot.Load( THEME->GetPathS("Common","screenshot") );
m_soundBack.Load( THEME->GetPathS("Common","back") );
}
@@ -364,6 +357,16 @@ ScreenManager::~ScreenManager()
delete m_SystemLayer;
}
void ScreenManager::ReloadCommonSounds()
{
// reload common sounds
m_soundStart.Load( THEME->GetPathS("Common","start") );
m_soundCoin.Load( THEME->GetPathS("Common","coin") );
m_soundInvalid.Load( THEME->GetPathS("Common","invalid") );
m_soundScreenshot.Load( THEME->GetPathS("Common","screenshot") );
m_soundBack.Load( THEME->GetPathS("Common","back") );
}
void ScreenManager::EmptyDeleteQueue()
{
if(!m_ScreensToDelete.size())