TrustedUser, Bureaucrats, Administrators
442
edits
(Add Director) |
(Updates MacOS manual MD5 instructions) |
||
(One intermediate revision by one other user not shown) | |||
Line 30: | Line 30: | ||
To get the correct MD5 checksum, run the following | To get the correct MD5 checksum, run the following | ||
=== Using ScummVM === | |||
Since version 2.6.0, ScummVM can compute and report the md5 of files on the command line. | |||
scummvm --md5 --md5-path=file --md5-engine=engine | |||
Where <code>file</code> is the file to be examined and <code>engine</code> is the engine that would use this file. This will automatically use the size used for detection by the specified engine. The size can also be provided manually using <code>--md5-length=size</code> instead of <code>--md5-engine=engine</code> | |||
For old Mac files with a resource fork, us <code>--md5mac</code> instead of <code>--md5</code>. | |||
===Under *nix=== | ===Under *nix=== | ||
Line 38: | Line 46: | ||
===Under macOS=== | ===Under macOS=== | ||
head -c size file | md5 -r | |||
Where <code>file</code> is the file to be examined. | Where <code>file</code> is the file to be examined and <code>size</code> depends on the engine, as described above. | ||
Alternatively, you can install [https://raamdev.com/2008/howto-install-md5sum-sha1sum-on-mac-os-x/ md5sum] and run the *nix command above. | Alternatively, you can install [https://raamdev.com/2008/howto-install-md5sum-sha1sum-on-mac-os-x/ md5sum] and run the *nix command above. |