uint32_t crc32s; allow partial checksums

This commit is contained in:
Glenn Maynard
2004-12-13 00:19:15 +00:00
parent 73e5f1092f
commit 36990c4a4c
2 changed files with 4 additions and 9 deletions
+1 -6
View File
@@ -194,16 +194,11 @@ void RageFileObj::EnableCRC32( bool on )
return;
}
/* If we're not at the beginning of the file, it's meaningless to start
* calculating a CRC32 now. */
if( m_iFilePos != 0 )
return;
m_bCRC32Enabled = true;
m_iCRC32 = 0;
}
bool RageFileObj::GetCRC32( unsigned *iRet )
bool RageFileObj::GetCRC32( uint32_t *iRet )
{
if( !m_bCRC32Enabled )
return false;