diff options
author | Ben Castricum | 2019-09-29 16:22:33 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-30 07:46:12 +0300 |
commit | f10afb8d162826235b96f5acc8f31c9b6f901a29 (patch) | |
tree | 8198bdb1b7a681502c5104d3b31314021907ee6e /engines | |
parent | 1fe75a631bde418137d7228a4a812f7da3b82113 (diff) | |
download | scummvm-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.cpp | 9 |
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(); |