[Scummvm-cvs-logs] CVS: scummvm/common md5.cpp,1.3,1.4 md5.h,1.3,1.4
Eugene Sandulenko
sev at users.sourceforge.net
Tue Jun 29 05:08:01 CEST 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.229.2.4,1.229.2.5 actor.h,1.51,1.51.2.1 base-costume.cpp,2.11,2.11.2.1 base-costume.h,1.18.2.1,1.18.2.2 script_v6he.cpp,2.15.2.3,2.15.2.4
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.70,1.71 scumm.h,1.420,1.421
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv438
Modified Files:
md5.cpp md5.h
Log Message:
Make md5_file() work regardless file name case and within arbitrary
directory.
Index: md5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/md5.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- md5.cpp 6 Jan 2004 12:45:28 -0000 1.3
+++ md5.cpp 29 Jun 2004 12:07:14 -0000 1.4
@@ -239,14 +239,14 @@
PUT_UINT32( ctx->state[3], digest, 12 );
}
-bool md5_file( const char *name, uint8 digest[16] )
+bool md5_file( const char *name, uint8 digest[16], const char *directory )
{
File f;
md5_context ctx;
int i;
unsigned char buf[1000];
- f.open(name);
+ f.open(name, File::kFileReadMode, directory);
if( ! f.isOpen() )
{
warning( "md5_file couldn't open '%s'", name );
Index: md5.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/md5.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- md5.h 6 Jan 2004 12:45:28 -0000 1.3
+++ md5.h 29 Jun 2004 12:07:15 -0000 1.4
@@ -35,6 +35,6 @@
void md5_update( md5_context *ctx, const uint8 *input, uint32 length );
void md5_finish( md5_context *ctx, uint8 digest[16] );
-bool md5_file( const char *name, uint8 digest[16] );
+bool md5_file( const char *name, uint8 digest[16], const char *directory = NULL );
#endif
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.229.2.4,1.229.2.5 actor.h,1.51,1.51.2.1 base-costume.cpp,2.11,2.11.2.1 base-costume.h,1.18.2.1,1.18.2.2 script_v6he.cpp,2.15.2.3,2.15.2.4
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.70,1.71 scumm.h,1.420,1.421
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list