diff options
| author | Max Horn | 2003-12-13 00:20:01 +0000 |
|---|---|---|
| committer | Max Horn | 2003-12-13 00:20:01 +0000 |
| commit | 35b62c294de5f4114b1b413c46e7ec3136e5b2fd (patch) | |
| tree | 0183a1afe636edb0907f37e42615467d9ded3714 /common | |
| parent | dd33ae0f0ffebdd8dde2e15c50a89b02e5e36506 (diff) | |
| download | scummvm-rg350-35b62c294de5f4114b1b413c46e7ec3136e5b2fd.tar.gz scummvm-rg350-35b62c294de5f4114b1b413c46e7ec3136e5b2fd.tar.bz2 scummvm-rg350-35b62c294de5f4114b1b413c46e7ec3136e5b2fd.zip | |
removed GameSettings::detectname and GameSettings::midi; renamed GameSettings::gameName to name; added temporary experimental MD5 hack
svn-id: r11603
Diffstat (limited to 'common')
| -rw-r--r-- | common/md5.cpp | 5 | ||||
| -rw-r--r-- | common/md5.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/common/md5.cpp b/common/md5.cpp index d10daa9f7a..7e3ea25395 100644 --- a/common/md5.cpp +++ b/common/md5.cpp @@ -239,7 +239,7 @@ void md5_finish( md5_context *ctx, uint8 digest[16] ) PUT_UINT32( ctx->state[3], digest, 12 ); } -void md5_file( const char *name, uint8 digest[16] ) +bool md5_file( const char *name, uint8 digest[16] ) { File f; md5_context ctx; @@ -250,7 +250,7 @@ void md5_file( const char *name, uint8 digest[16] ) if( ! f.isOpen() ) { warning( "md5_file couldn't open '%s'", name ); - return; + return false; } md5_starts( &ctx ); @@ -261,6 +261,7 @@ void md5_file( const char *name, uint8 digest[16] ) } md5_finish( &ctx, digest ); + return true; } #ifdef TEST diff --git a/common/md5.h b/common/md5.h index 2f732bf65a..35add51cd9 100644 --- a/common/md5.h +++ b/common/md5.h @@ -35,6 +35,6 @@ void md5_starts( md5_context *ctx ); void md5_update( md5_context *ctx, const uint8 *input, uint32 length ); void md5_finish( md5_context *ctx, uint8 digest[16] ); -void md5_file( const char *name, uint8 digest[16] ); +bool md5_file( const char *name, uint8 digest[16] ); #endif |
