diff --git a/stepmania/src/RageFileBasic.cpp b/stepmania/src/RageFileBasic.cpp index 8a1a6c09e2..f0a7657247 100644 --- a/stepmania/src/RageFileBasic.cpp +++ b/stepmania/src/RageFileBasic.cpp @@ -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; diff --git a/stepmania/src/RageFileBasic.h b/stepmania/src/RageFileBasic.h index f038aeb507..005be32b45 100644 --- a/stepmania/src/RageFileBasic.h +++ b/stepmania/src/RageFileBasic.h @@ -50,7 +50,7 @@ public: virtual int PutLine( const CString &str ) = 0; virtual void EnableCRC32( bool on=true ) = 0; - virtual bool GetCRC32( unsigned *iRet ) = 0; + virtual bool GetCRC32( uint32_t *iRet ) = 0; virtual int GetFileSize() const = 0; }; @@ -84,7 +84,7 @@ public: int PutLine( const CString &str ); void EnableCRC32( bool on=true ); - bool GetCRC32( unsigned *iRet ); + bool GetCRC32( uint32_t *iRet ); virtual int GetFileSize() const = 0; virtual CString GetDisplayPath() const { return ""; } @@ -134,7 +134,7 @@ private: * This is only meaningful if EnableCRC32() is called at the very start of the * file, and no seeking is performed. */ bool m_bCRC32Enabled; - unsigned m_iCRC32; + uint32_t m_iCRC32; }; #endif