mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
BASE: Automatically detect Mac files
This essentially obsoletes --md5mac. Now, with --md5 we still compute resource forks checksums if mac file is detected
This commit is contained in:
@@ -2085,6 +2085,20 @@ bool processSettings(Common::String &command, Common::StringMap &settings, Commo
|
||||
steps = 1;
|
||||
}
|
||||
|
||||
// Prrobe mac file
|
||||
if (command == "md5") {
|
||||
Common::SearchSet dir;
|
||||
Common::FSNode dirNode(Filename.getParent());
|
||||
dir.addDirectory(dirNode);
|
||||
Common::Path fileName = Filename.getLastComponent();
|
||||
|
||||
Common::MacResManager macResMan;
|
||||
if (macResMan.open(fileName, dir)) {
|
||||
warning("Mac resources detected");
|
||||
command = "md5mac";
|
||||
}
|
||||
}
|
||||
|
||||
for (uint i = 0; i < steps; i++) {
|
||||
if (command == "md5") {
|
||||
Common::FSNode path(Filename);
|
||||
|
||||
Reference in New Issue
Block a user