add grade count and screenshots sections to stats.html

This commit is contained in:
Chris Danford
2004-02-16 09:23:34 +00:00
parent 4156126765
commit be49e33c53
8 changed files with 149 additions and 55 deletions
+9 -4
View File
@@ -1127,18 +1127,23 @@ bool SaveScreenshot( CString sDir, bool bSaveCompressed, bool bMakeSignature )
//
CString sScreenshotPath = ssprintf( sDir+"screen%04d.%s",fileno,bSaveCompressed ? "jpg" : "bmp" );
bool bResult = DISPLAY->SaveScreenshot( sScreenshotPath, bSaveCompressed ? RageDisplay::jpg : RageDisplay::bmp );
if( bResult )
SOUND->PlayOnce( THEME->GetPathToS("Common screenshot") );
else
if( !bResult )
{
SOUND->PlayOnce( THEME->GetPathToS("Common invalid") );
return false;
}
SOUND->PlayOnce( THEME->GetPathToS("Common screenshot") );
// We wrote a new file, and SignFile won't pick it up unless we invalidate
// the Dir cache. There's got to be a better way of doing this than
// thowing out all the cache. -Chris
FlushDirCache();
if( bMakeSignature )
CryptManager::SignFile( sScreenshotPath );
return bResult;
return false;
}
/* Returns true if the key has been handled and should be discarded, false if