[Scummvm-devel] MD5s of Scumm data files

Max Horn max at quendi.de
Sat Dec 13 11:13:00 CET 2003


Am Samstag, 13.12.03 um 18:46 Uhr schrieb Marcus Comstedt:

>
> Max Horn <max at quendi.de> writes:
>
>> Yo folks,
>>
>> recently we had some discussion on #scummvm regarding making a table
>> of MD5 checksum of game data files (right now restricted to scumm,
>> though this could easily be applied to other engines, if desired).
>>
>> The idea: Collect MD5s of the data files of all supported games in all
>> existing variants (of course this is quite a big number considering
>> all the localizations etc.). For most purposes, taking the MD5 of one
>> file (the "first" data file, so
>> 00.LFL/000.LFL/*.000/*.la0/*.he0/*.sm0) is sufficient, for some others
>> it's better to have the MD5 of all
>
> I'm all for this.  Having "perfect" auto detection in the ScummVM
> proper would allow me to can my own auto-detection hacks which tend to
> break whenever someone edits the launcher.  :-)
>
Well that's because you are not really using the launcher, but rather 
your own code which then "borrows" code form the launcher, no? :-)

> However, hashing files means that they have to be opened, which
> introduces seek times on a CD-only system, so I'd prefer restricting
> the hash to one or two (named) files per game rather than taking one
> of all datafiles.  Using the first datafile is good, since it's
> typically very small, saving the time to read and hash large data
> amounts.  Remember that you'd have to do this every time you startup
> ScummVM on the Dreamcast, for every game on the CD.
>
Yes yes, I figured all this all by my own, w/o even owning a DC, ain't 
I clever? :-) I am only hashing the first file (did you actually take a 
look at the MD5 website I put up? :-)


Cheers,

Max





More information about the Scummvm-devel mailing list