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:
Eugene Sandulenko
2025-06-29 00:36:19 +02:00
parent aa1b1cd8de
commit 7c013bdb2c
+14
View File
@@ -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);