const fixes
This commit is contained in:
@@ -80,15 +80,15 @@ void HighScore::LoadFromNode( const XNode* pNode )
|
||||
pNode->GetChildValue( "PlayerGuid", sPlayerGuid );
|
||||
pNode->GetChildValue( "MachineGuid", sMachineGuid );
|
||||
pNode->GetChildValue( "ProductID", iProductID );
|
||||
XNode* pTapNoteScores = pNode->GetChild( "TapNoteScores" );
|
||||
const XNode* pTapNoteScores = pNode->GetChild( "TapNoteScores" );
|
||||
if( pTapNoteScores )
|
||||
FOREACH_TapNoteScore( tns )
|
||||
pTapNoteScores->GetChildValue( TapNoteScoreToString(tns), iTapNoteScores[tns] );
|
||||
XNode* pHoldNoteScores = pNode->GetChild( "HoldNoteScores" );
|
||||
const XNode* pHoldNoteScores = pNode->GetChild( "HoldNoteScores" );
|
||||
if( pHoldNoteScores )
|
||||
FOREACH_HoldNoteScore( hns )
|
||||
pHoldNoteScores->GetChildValue( HoldNoteScoreToString(hns), iHoldNoteScores[hns] );
|
||||
XNode* pRadarValues = pNode->GetChild( "RadarValues" );
|
||||
const XNode* pRadarValues = pNode->GetChild( "RadarValues" );
|
||||
if( pRadarValues )
|
||||
radarValues.LoadFromNode( pRadarValues );
|
||||
|
||||
@@ -205,7 +205,7 @@ void Screenshot::LoadFromNode( const XNode* pNode )
|
||||
|
||||
pNode->GetChildValue( "FileName", sFileName );
|
||||
pNode->GetChildValue( "MD5", sMD5 );
|
||||
XNode* pHighScore = pNode->GetChild( "HighScore" );
|
||||
const XNode* pHighScore = pNode->GetChild( "HighScore" );
|
||||
if( pHighScore )
|
||||
highScore.LoadFromNode( pHighScore );
|
||||
}
|
||||
|
||||
@@ -894,7 +894,7 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
|
||||
pNode->GetChildValue( "TotalHands", m_iTotalHands );
|
||||
|
||||
{
|
||||
XNode* pUnlockedSongs = pNode->GetChild("UnlockedSongs");
|
||||
const XNode* pUnlockedSongs = pNode->GetChild("UnlockedSongs");
|
||||
if( pUnlockedSongs )
|
||||
{
|
||||
FOREACH_Node( pUnlockedSongs, song )
|
||||
@@ -907,14 +907,14 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
|
||||
}
|
||||
|
||||
{
|
||||
XNode* pNumSongsPlayedByPlayMode = pNode->GetChild("NumSongsPlayedByPlayMode");
|
||||
const XNode* pNumSongsPlayedByPlayMode = pNode->GetChild("NumSongsPlayedByPlayMode");
|
||||
if( pNumSongsPlayedByPlayMode )
|
||||
FOREACH_PlayMode( pm )
|
||||
pNumSongsPlayedByPlayMode->GetChildValue( PlayModeToString(pm), m_iNumSongsPlayedByPlayMode[pm] );
|
||||
}
|
||||
|
||||
{
|
||||
XNode* pNumSongsPlayedByStyle = pNode->GetChild("NumSongsPlayedByStyle");
|
||||
const XNode* pNumSongsPlayedByStyle = pNode->GetChild("NumSongsPlayedByStyle");
|
||||
if( pNumSongsPlayedByStyle )
|
||||
{
|
||||
FOREACH_Node( pNumSongsPlayedByStyle, style )
|
||||
@@ -934,28 +934,28 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
|
||||
}
|
||||
|
||||
{
|
||||
XNode* pNumSongsPlayedByDifficulty = pNode->GetChild("NumSongsPlayedByDifficulty");
|
||||
const XNode* pNumSongsPlayedByDifficulty = pNode->GetChild("NumSongsPlayedByDifficulty");
|
||||
if( pNumSongsPlayedByDifficulty )
|
||||
FOREACH_Difficulty( dc )
|
||||
pNumSongsPlayedByDifficulty->GetChildValue( DifficultyToString(dc), m_iNumSongsPlayedByDifficulty[dc] );
|
||||
}
|
||||
|
||||
{
|
||||
XNode* pNumSongsPlayedByMeter = pNode->GetChild("NumSongsPlayedByMeter");
|
||||
const XNode* pNumSongsPlayedByMeter = pNode->GetChild("NumSongsPlayedByMeter");
|
||||
if( pNumSongsPlayedByMeter )
|
||||
for( int i=0; i<MAX_METER+1; i++ )
|
||||
pNumSongsPlayedByMeter->GetChildValue( ssprintf("Meter%d",i), m_iNumSongsPlayedByMeter[i] );
|
||||
}
|
||||
|
||||
{
|
||||
XNode* pNumSongsPassedByGrade = pNode->GetChild("NumSongsPassedByGrade");
|
||||
const XNode* pNumSongsPassedByGrade = pNode->GetChild("NumSongsPassedByGrade");
|
||||
if( pNumSongsPassedByGrade )
|
||||
FOREACH_Grade( g )
|
||||
pNumSongsPassedByGrade->GetChildValue( GradeToString(g), m_iNumSongsPassedByGrade[g] );
|
||||
}
|
||||
|
||||
{
|
||||
XNode* pNumSongsPassedByPlayMode = pNode->GetChild("NumSongsPassedByPlayMode");
|
||||
const XNode* pNumSongsPassedByPlayMode = pNode->GetChild("NumSongsPassedByPlayMode");
|
||||
if( pNumSongsPassedByPlayMode )
|
||||
FOREACH_PlayMode( pm )
|
||||
pNumSongsPassedByPlayMode->GetChildValue( PlayModeToString(pm), m_iNumSongsPassedByPlayMode[pm] );
|
||||
@@ -1512,7 +1512,7 @@ void Profile::HighScoreForASongAndSteps::LoadFromNode( const XNode* pNode )
|
||||
Unset();
|
||||
|
||||
ASSERT( pNode->name == "HighScoreForASongAndSteps" );
|
||||
XNode* p;
|
||||
const XNode* p;
|
||||
if( (p = pNode->GetChild("Song")) )
|
||||
songID.LoadFromNode( p );
|
||||
if( (p = pNode->GetChild("Steps")) )
|
||||
@@ -1589,7 +1589,7 @@ void Profile::HighScoreForACourseAndTrail::LoadFromNode( const XNode* pNode )
|
||||
Unset();
|
||||
|
||||
ASSERT( pNode->name == "HighScoreForACourseAndTrail" );
|
||||
XNode* p;
|
||||
const XNode* p;
|
||||
if( (p = pNode->GetChild("Course")) )
|
||||
courseID.LoadFromNode( p );
|
||||
if( (p = pNode->GetChild("Trail")) )
|
||||
|
||||
Reference in New Issue
Block a user