[Scummvm-cvs-logs] CVS: scummvm/common md5.cpp,1.1,1.2 md5.h,1.1,1.2
Max Horn
fingolfin at users.sourceforge.net
Fri Dec 12 16:21:01 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common md5.cpp,NONE,1.1 md5.h,NONE,1.1 module.mk,1.12,1.13
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.55,1.56 gameDetector.h,1.21,1.22 plugins.cpp,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv15141/common
Modified Files:
md5.cpp md5.h
Log Message:
removed GameSettings::detectname and GameSettings::midi; renamed GameSettings::gameName to name; added temporary experimental MD5 hack
Index: md5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/md5.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- md5.cpp 13 Dec 2003 00:06:00 -0000 1.1
+++ md5.cpp 13 Dec 2003 00:20:00 -0000 1.2
@@ -239,7 +239,7 @@
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 @@
if( ! f.isOpen() )
{
warning( "md5_file couldn't open '%s'", name );
- return;
+ return false;
}
md5_starts( &ctx );
@@ -261,6 +261,7 @@
}
md5_finish( &ctx, digest );
+ return true;
}
#ifdef TEST
Index: md5.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/md5.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- md5.h 13 Dec 2003 00:06:00 -0000 1.1
+++ md5.h 13 Dec 2003 00:20:00 -0000 1.2
@@ -35,6 +35,6 @@
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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common md5.cpp,NONE,1.1 md5.h,NONE,1.1 module.mk,1.12,1.13
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.55,1.56 gameDetector.h,1.21,1.22 plugins.cpp,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list