[Scummvm-git-logs] scummvm master -> f43ec6b2e8545571ff22be040ac7bd1fe0fa8ebc
athrxx
noreply at scummvm.org
Fri Jul 12 10:49:24 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f43ec6b2e8 SCI: fix video mode detection
Commit: f43ec6b2e8545571ff22be040ac7bd1fe0fa8ebc
https://github.com/scummvm/scummvm/commit/f43ec6b2e8545571ff22be040ac7bd1fe0fa8ebc
Author: athrxx (athrxx at scummvm.org)
Date: 2024-07-12T12:48:41+02:00
Commit Message:
SCI: fix video mode detection
(for filename case-sensitive backends)
Changed paths:
engines/sci/detection_internal.h
diff --git a/engines/sci/detection_internal.h b/engines/sci/detection_internal.h
index fbd6892ddb5..6dde0a85f1f 100644
--- a/engines/sci/detection_internal.h
+++ b/engines/sci/detection_internal.h
@@ -146,12 +146,17 @@ static Common::String customizeGuiOptions(Common::Path gamePath, Common::String
warning("Game path '%s' could not be accessed", gamePath.toString().c_str());
return guiOptions;
}
-
- for (int i = 0; i < ARRAYSIZE(rmodes); i++) {
- if ((version == SCI_VERSION_NONE || (version >= rmodes[i].min && version <= rmodes[i].max)) && node.getChild(rmodes[i].gfxDriverName).exists())
- guiOptions += rmodes[i].guio;
+
+ Common::FSList files;
+ node.getChildren(files, Common::FSNode::kListFilesOnly);
+ for (Common::FSList::const_iterator i = files.begin(); i != files.end(); ++i) {
+ for (int ii = 0; ii < ARRAYSIZE(rmodes); ii++) {
+ if ((version == SCI_VERSION_NONE || (version >= rmodes[ii].min && version <= rmodes[ii].max)) && i->getFileName().equalsIgnoreCase(rmodes[ii].gfxDriverName))
+ guiOptions += rmodes[ii].guio;
+ }
}
+
return guiOptions;
}
More information about the Scummvm-git-logs
mailing list