add "stopmusic"
This commit is contained in:
@@ -54,6 +54,7 @@ void GameCommand::Init()
|
|||||||
m_bDownloadMachineStats = false;
|
m_bDownloadMachineStats = false;
|
||||||
m_bInsertCredit = false;
|
m_bInsertCredit = false;
|
||||||
m_bResetToFactoryDefaults = false;
|
m_bResetToFactoryDefaults = false;
|
||||||
|
m_bStopMusic = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompareSongOptions( const SongOptions &so1, const SongOptions &so2 );
|
bool CompareSongOptions( const SongOptions &so1, const SongOptions &so2 );
|
||||||
@@ -279,6 +280,10 @@ void GameCommand::Load( int iIndex, const Commands& cmds )
|
|||||||
{
|
{
|
||||||
m_bResetToFactoryDefaults = true;
|
m_bResetToFactoryDefaults = true;
|
||||||
}
|
}
|
||||||
|
else if( sName == "stopmusic" )
|
||||||
|
{
|
||||||
|
m_bStopMusic = true;
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -561,6 +566,8 @@ void GameCommand::Apply( PlayerNumber pn ) const
|
|||||||
UNLOCKMAN->UnlockCode( m_iUnlockIndex );
|
UNLOCKMAN->UnlockCode( m_iUnlockIndex );
|
||||||
if( m_sSoundPath != "" )
|
if( m_sSoundPath != "" )
|
||||||
SOUND->PlayOnce( THEME->GetPathToS( m_sSoundPath ) );
|
SOUND->PlayOnce( THEME->GetPathToS( m_sSoundPath ) );
|
||||||
|
if( m_bStopMusic )
|
||||||
|
SOUND->StopMusic();
|
||||||
FOREACH_CONST( CString, m_vsScreensToPrepare, s )
|
FOREACH_CONST( CString, m_vsScreensToPrepare, s )
|
||||||
SCREENMAN->PrepareScreen( *s );
|
SCREENMAN->PrepareScreen( *s );
|
||||||
if( m_bDeletePreparedScreens )
|
if( m_bDeletePreparedScreens )
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ struct GameCommand // used in SelectMode
|
|||||||
bool m_bDownloadMachineStats;
|
bool m_bDownloadMachineStats;
|
||||||
bool m_bInsertCredit;
|
bool m_bInsertCredit;
|
||||||
bool m_bResetToFactoryDefaults;
|
bool m_bResetToFactoryDefaults;
|
||||||
|
bool m_bStopMusic;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user