fix not loading correctly the Common Sounds in ScreenManager. now loads and reloads fine
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user