From 467605b683c8d120ed1761ef592678aad298506e Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 8 Dec 2003 10:46:14 +0000 Subject: [PATCH] working on stats.html --- stepmania/src/ProfileManager.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index 4b84abdf75..edf55fb4b8 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -898,8 +898,8 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc ) f.PutLine( "
\n" ); f.PutLine( "

Sections

\n" ); PRINT_LINK( "My Statistics", "#My Statistics" ); - PRINT_LINK( "Song/Steps List", "#Song/Steps List" ); PRINT_LINK( "Difficulty Table", "#Difficulty Table" ); + PRINT_LINK( "Song/Steps List", "#Song/Steps List" ); f.PutLine( "
\n" ); @@ -968,14 +968,16 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc ) f.PutLine( "" ); f.Write( ssprintf("%s", - pSong, // use song pointer value as the hash + pSong, // use pointer value as the hash pSong->GetTranslitMainTitle().c_str()) ); for( Difficulty dc=(Difficulty)0; dcGetStepsByDifficulty( st, dc, false ); if( pSteps ) - f.PutLine( ssprintf("%d", pSteps->GetMeter()) ); + f.PutLine( ssprintf("

%d

", + pSteps, // use pointer value as the hash + pSteps->GetMeter()) ); else f.PutLine( " " ); } @@ -1006,7 +1008,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc ) //CString sImagePath = pSong->HasBanner() ? pSong->GetBannerPath() : (pSong->HasBackground() ? pSong->GetBackgroundPath() : "" ); f.PutLine( "
\n" ); f.PutLine( ssprintf("

%s

\n", - pSong, // use song pointer value as the hash + pSong, // use pointer value as the hash pSong->GetFullDisplayTitle().c_str()) ); PRINT_LINE_S( "Artist", pSong->GetDisplayArtist() ); PRINT_LINE_S( "GroupName", pSong->m_sGroupName ); @@ -1029,7 +1031,8 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc ) if( pSteps->IsAutogen() ) continue; // skip autogen f.PutLine( "
\n" ); - f.PutLine( ssprintf("

%s - %s

\n", + f.PutLine( ssprintf("

%s - %s

\n", + pSteps, // use pointer value as the hash GAMEMAN->NotesTypeToString(pSteps->m_StepsType).c_str(), DifficultyToString(pSteps->GetDifficulty()).c_str()) ); PRINT_LINE_I( "NumTimesPlayed", pSteps->m_MemCardDatas[mc].iNumTimesPlayed );