working on USB memory card detection for Linux

This commit is contained in:
Chris Danford
2003-12-15 07:35:40 +00:00
parent 2a029e97be
commit 174c634616
7 changed files with 89 additions and 46 deletions
+7 -4
View File
@@ -64,7 +64,7 @@ GameState::~GameState()
void GameState::Reset()
{
if( m_timeGameStated != 0 && m_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song
if( m_timeGameStarted != 0 && m_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song
EndGame();
@@ -72,7 +72,7 @@ void GameState::Reset()
int p;
m_timeGameStated = 0;
m_timeGameStarted = 0;
m_CurStyle = STYLE_INVALID;
for( p=0; p<NUM_PLAYERS; p++ )
m_bSideIsJoined[p] = false;
@@ -155,7 +155,7 @@ void GameState::Reset()
void GameState::BeginGame()
{
m_timeGameStated = time(NULL);
m_timeGameStarted = time(NULL);
}
void GameState::EndGame()
@@ -163,7 +163,7 @@ void GameState::EndGame()
// Update profile stats
time_t now = time(NULL);
int iPlaySeconds = now - m_timeGameStated;
int iPlaySeconds = now - m_timeGameStarted;
if( iPlaySeconds < 0 )
iPlaySeconds = 0;
@@ -1134,7 +1134,10 @@ void GameState::StoreRankingName( PlayerNumber pn, CString name )
line = file.GetLine();
line.MakeUpper();
if( !line.empty() && name.Find(line) != -1 ) // name contains a bad word
{
LOG->Trace( "name '%s' contains bad word and will be blanked", name.c_str() );
name = "";
}
}
}