aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBen Castricum2019-09-29 16:22:33 +0200
committerFilippos Karapetis2019-09-30 07:46:12 +0300
commitf10afb8d162826235b96f5acc8f31c9b6f901a29 (patch)
tree8198bdb1b7a681502c5104d3b31314021907ee6e /engines
parent1fe75a631bde418137d7228a4a812f7da3b82113 (diff)
downloadscummvm-rg350-f10afb8d162826235b96f5acc8f31c9b6f901a29.tar.gz
scummvm-rg350-f10afb8d162826235b96f5acc8f31c9b6f901a29.tar.bz2
scummvm-rg350-f10afb8d162826235b96f5acc8f31c9b6f901a29.zip
SCUMM: Detect language file of Steam version of DIG, fixes bug #10697
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/detection.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index fccb30b0fa..a5bba29ff9 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -434,6 +434,15 @@ static Common::Language detectLanguage(const Common::FSList &fslist, byte id) {
&& searchFSNode(tmpList, filename, langFile)) {
tmp.open(langFile);
}
+ // The Steam version of Dig has the LANGUAGE.BND in the DIG sub dir...
+ if (!tmp.isOpen()
+ && id == GID_DIG
+ && searchFSNode(fslist, "DIG", resDir)
+ && resDir.isDirectory()
+ && resDir.getChildren(tmpList, Common::FSNode::kListFilesOnly)
+ && searchFSNode(tmpList, filename, langFile)) {
+ tmp.open(langFile);
+ }
}
if (tmp.isOpen()) {
uint size = tmp.size();