\n", szName) )
-#define PRINT_DIV2_START_ANCHOR(uAnchor,szName) f.Write( ssprintf("
\n" "
\n", uAnchor, szName) )
+#define PRINT_DIV2_START_ANCHOR(uAnchor,szName) f.Write( ssprintf("
\n" "
\n", (unsigned)uAnchor, szName) )
#define PRINT_DIV2_END f.Write( "
\n" )
#define PRINT_LINK(szName,szLink) f.Write( ssprintf("
%s
\n",szLink,szName) )
#define PRINT_LINE_S(szName,sVal) f.Write( ssprintf("
%s = %s
\n",szName,sVal.c_str()) )
@@ -1108,7 +1108,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc )
for( unsigned i=0; i
GetFullDisplayTitle(), ssprintf("#%u",pSong).c_str(), pSong->GetNumTimesPlayed(mc) );
+ PRINT_LINE_RANK_LINK( i+1, pSong->GetFullDisplayTitle(), ssprintf("#%u",(unsigned)pSong).c_str(), pSong->GetNumTimesPlayed(mc) );
}
PRINT_DIV_END;
}
@@ -1129,7 +1129,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc )
s += GAMEMAN->NotesTypeToString(pSteps->m_StepsType);
s += " ";
s += DifficultyToString(pSteps->GetDifficulty());
- PRINT_LINE_RANK_LINK( i+1, s, ssprintf("#%u",pSteps).c_str(), pSteps->GetNumTimesPlayed(mc) );
+ PRINT_LINE_RANK_LINK( i+1, s, ssprintf("#%u",(unsigned)pSteps).c_str(), pSteps->GetNumTimesPlayed(mc) );
}
PRINT_DIV_END;
}
@@ -1143,7 +1143,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc )
for( unsigned i=0; im_sName, ssprintf("#%u",pCourse).c_str(), pCourse->GetNumTimesPlayed(mc) );
+ PRINT_LINE_RANK_LINK( i+1, pCourse->m_sName, ssprintf("#%u",(unsigned)pCourse).c_str(), pCourse->GetNumTimesPlayed(mc) );
}
PRINT_DIV_END;
}
@@ -1185,7 +1185,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc )
f.PutLine( "" );
f.Write( ssprintf("| %s | ",
- pSong, // use pointer value as the hash
+ (unsigned)pSong, // use pointer value as the hash
pSong->GetFullDisplayTitle().c_str()) );
for( Difficulty dc=(Difficulty)0; dcGetStepsByDifficulty( st, dc, false );
if( pSteps )
f.PutLine( ssprintf("%d | ",
- pSteps, // use pointer value as the hash
+ (unsigned)pSteps, // use pointer value as the hash
pSteps->GetMeter()) );
else
f.PutLine( " | " );